mirror of
https://github.com/tribufu/proxmox-ve-openapi
synced 2026-06-01 09:42:38 +00:00
Another generator fix
This commit is contained in:
parent
a97a88e2c2
commit
77e84b1e11
1 changed files with 12 additions and 1 deletions
|
|
@ -106,7 +106,18 @@ function parseInfo(path, method, info){
|
||||||
description: responseName,
|
description: responseName,
|
||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
schema: buildResponseSchema(info.returns)
|
schema: {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
errors: {
|
||||||
|
type: 'array',
|
||||||
|
items: {
|
||||||
|
type: 'string'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data: buildResponseSchema(info.returns)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue