1
0
Fork 0

Fix swagger a litle bit

This commit is contained in:
Alan Plum 2016-06-20 21:41:09 +02:00
parent 30897fabe6
commit e77e18bbc9
No known key found for this signature in database
GPG Key ID: 8ED72A9A323B6EFD
2 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ function resolveFoxx(req, res, appPath) {
}
function swaggerJson(req, res, opts) {
let mount = mount || opts.mount;
let mount = opts.mount;
let foxx = opts.foxx || resolveFoxx(req, res, mount);
let docs = foxx.docs;
if (!docs) {

View File

@ -395,8 +395,8 @@ module.exports = exports = class SwaggerContext {
}
operation.responses = {
default: {
description: 'Unexpected error.',
500: {
description: 'Default error response.',
schema: joi2schema(DEFAULT_ERROR_SCHEMA)
}
};