Another generator fix

This commit is contained in:
JanHolger 2020-12-22 09:16:58 +01:00
parent a97a88e2c2
commit 77e84b1e11

View file

@ -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)
}
}
}
}
}