Fixed a bug that prevented additionalProperties holding a boolean to be rendered.

This commit is contained in:
Matthias Mohr 2018-08-07 11:31:45 +02:00
parent 568ce74077
commit 1f20b95a36

View File

@ -244,7 +244,7 @@ function buildFields(
sortByRequired(fields, schema.required);
}
if (typeof additionalProps === 'object') {
if (typeof additionalProps === 'object' || typeof additionalProps === 'boolean') {
fields.push(
new FieldModel(
parser,