Skip to content

Commit 6037d95

Browse files
committed
fix(size): add integer constraint to api.defaultSize
1 parent f1e4575 commit 6037d95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = Joi.object().keys({
3131
}),
3232
minSize: Joi.number().integer().min(1).max(Joi.ref('maxSize')).default(1),
3333
maxSize: Joi.number().integer().min(1).default(40),
34-
defaultSize: Joi.number().min(Joi.ref('minSize')).max(Joi.ref('maxSize')).default(10),
34+
defaultSize: Joi.number().integer().min(Joi.ref('minSize')).max(Joi.ref('maxSize')).default(10),
3535
localization: Joi.object().keys({
3636
flipNumberAndStreetCountries: Joi.array().items(Joi.string().regex(/^[A-Z]{3}$/))
3737
}).unknown(false),

0 commit comments

Comments
 (0)