Skip to content

Commit

Permalink
Fix e.values(...).some is not a function
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Aug 13, 2024
1 parent d1987b9 commit cf92831
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 cf92831

Please sign in to comment.