mirror of https://gitee.com/bigwinds/arangodb
Allow leaving idiomatic undefined
This commit is contained in:
parent
5dddecc2b3
commit
ceff28b9dc
|
@ -407,7 +407,7 @@ instanceRouter.post('/tests', (req, res) => {
|
||||||
})
|
})
|
||||||
.queryParam('filter', joi.string().allow("").optional())
|
.queryParam('filter', joi.string().allow("").optional())
|
||||||
.queryParam('reporter', joi.only(...Object.keys(reporters)).optional())
|
.queryParam('reporter', joi.only(...Object.keys(reporters)).optional())
|
||||||
.queryParam('idiomatic', schemas.flag.default(false))
|
.queryParam('idiomatic', schemas.flag.optional())
|
||||||
.response(200, ['json', LDJSON, 'xml', 'text']);
|
.response(200, ['json', LDJSON, 'xml', 'text']);
|
||||||
|
|
||||||
instanceRouter.post('/download', (req, res) => {
|
instanceRouter.post('/download', (req, res) => {
|
||||||
|
|
|
@ -7,7 +7,7 @@ exports.mount = joi.string().regex(/(?:\/[-_0-9a-z]+)+/i).required();
|
||||||
exports.flag = joi.alternatives().try(
|
exports.flag = joi.alternatives().try(
|
||||||
joi.boolean(),
|
joi.boolean(),
|
||||||
joi.number().integer().min(0).max(1)
|
joi.number().integer().min(0).max(1)
|
||||||
).default(false);
|
);
|
||||||
|
|
||||||
exports.shortInfo = joi.object({
|
exports.shortInfo = joi.object({
|
||||||
mount: exports.mount,
|
mount: exports.mount,
|
||||||
|
|
Loading…
Reference in New Issue