Skip to content

Commit

Permalink
Merge pull request #884 from acacode/fix-values-error
Browse files Browse the repository at this point in the history
Fix `e.values(...).some is not a function`
  • Loading branch information
smorimoto authored Aug 13, 2024
2 parents d1987b9 + cf92831 commit 0785d07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/schema-parser/base-schema-parsers/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}
Expand Down

0 comments on commit 0785d07

Please sign in to comment.