diff --git a/src/services/models/Schema.ts b/src/services/models/Schema.ts index f8a196ab67..309133a753 100644 --- a/src/services/models/Schema.ts +++ b/src/services/models/Schema.ts @@ -244,14 +244,14 @@ function buildFields( sortByRequired(fields, schema.required); } - if (typeof additionalProps === 'object') { + if (typeof additionalProps === 'object' || additionalProps === true) { fields.push( new FieldModel( parser, { name: 'property name *', required: false, - schema: additionalProps, + schema: additionalProps === true ? {} : additionalProps, kind: 'additionalProperties', }, $ref + '/additionalProperties',