diff --git a/src/schema-parser/base-schema-parsers/object.js b/src/schema-parser/base-schema-parsers/object.js index c0074069..1d91fe80 100644 --- a/src/schema-parser/base-schema-parsers/object.js +++ b/src/schema-parser/base-schema-parsers/object.js @@ -17,9 +17,7 @@ class ObjectSchemaParser extends MonoSchemaParser { description: this.schemaFormatters.formatDescription( this.schema.description, ), - allFieldsAreOptional: !contentProperties - .values() - .some((part) => part.isRequired), + allFieldsAreOptional: !contentProperties.some((part) => part.isRequired), content: contentProperties, }; }