diff --git a/build/generator.js b/build/generator.js index 7fca03f..ee796c5 100644 --- a/build/generator.js +++ b/build/generator.js @@ -106,7 +106,18 @@ function parseInfo(path, method, info){ description: responseName, content: { 'application/json': { - schema: buildResponseSchema(info.returns) + schema: { + type: 'object', + properties: { + errors: { + type: 'array', + items: { + type: 'string' + } + }, + data: buildResponseSchema(info.returns) + } + } } } }