feat(rust): RunicNPC required, protocol 13, edge → main (runicnpc 9e step 3, merge 3 of 3) #37

Merged
whitlocktech merged 83 commits from edge into main 2026-10-09 07:22:44 +00:00
Showing only changes of commit 0efd5644f6 - Show all commits

View File

@@ -159,8 +159,10 @@ adminRustRouter.put(
/* #swagger.responses[404] = { description: 'No such server' } */ /* #swagger.responses[404] = { description: 'No such server' } */
requireRole('admin'), requireRole('admin'),
param('id').isString().isLength({ min: 1, max: 64 }), param('id').isString().isLength({ min: 1, max: 64 }),
body('mode').optional().isIn(['first', 'all', 'upto']), // Shape only. The words, the bounds and the per-rule sentences are
body('rules').isArray({ max: 10 }).withMessage('rules is a list of at most ten'), // `titles.validateSettings`'s, in the controller, so a bad mode reaches the
// form as a sentence rather than as "Invalid value".
body('rules').isArray().withMessage('rules is a list'),
validate, validate,
admin.putTitles, admin.putTitles,
) )