mirror of
https://github.com/tribufu/proxmox-ve-openapi
synced 2026-05-06 07:07:28 +00:00
ProxMox is returning integers even though type says boolean...
This commit is contained in:
parent
c013e47d0d
commit
ca7f0b65d9
2 changed files with 116 additions and 114 deletions
|
|
@ -46,6 +46,8 @@ function filterSchema(p){
|
|||
|
||||
function buildResponseSchema(source){
|
||||
const schema = { type: source.type || 'string', description: source.description || '' }
|
||||
if(schema.type === 'boolean')
|
||||
schema.type = 'integer'
|
||||
if(schema.type === 'null')
|
||||
schema.type = 'string'
|
||||
if(source.type === 'array' && source.items)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue