We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77b5278 commit 4fe32a8Copy full SHA for 4fe32a8
app-bootstrap.js
@@ -4,7 +4,7 @@
4
global.Promise = require('bluebird')
5
const Joi = require('joi')
6
7
-Joi.optionalId = () => Joi.alternatives().try(Joi.number(), Joi.string())
+Joi.optionalId = () => Joi.string()
8
Joi.id = () => Joi.optionalId().required()
9
Joi.page = () => Joi.number().integer().min(1).default(1)
10
Joi.perPage = () => Joi.number().integer().min(1).default(20)
0 commit comments