mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix: validation now allows challengeType 27 (#59825)
This commit is contained in:
@@ -156,7 +156,7 @@ const schema = Joi.object()
|
||||
otherwise: Joi.optional()
|
||||
}),
|
||||
certification: Joi.string().regex(slugWithSlashRE),
|
||||
challengeType: Joi.number().min(0).max(26).required(),
|
||||
challengeType: Joi.number().min(0).max(27).required(),
|
||||
checksum: Joi.number(),
|
||||
// TODO: require this only for normal challenges, not certs
|
||||
dashedName: Joi.string().regex(slugRE),
|
||||
|
||||
Reference in New Issue
Block a user