ProxMox is returning integers even though type says boolean...

This commit is contained in:
JanHolger 2021-01-02 00:05:23 +01:00
parent c013e47d0d
commit ca7f0b65d9
2 changed files with 116 additions and 114 deletions

View file

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