mirror of https://gitee.com/bigwinds/arangodb
Fix swagger a litle bit
This commit is contained in:
parent
30897fabe6
commit
e77e18bbc9
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue