Skip to content

Commit cf92831

Browse files
committed
Fix e.values(...).some is not a function
Signed-off-by: Sora Morimoto <[email protected]>
1 parent d1987b9 commit cf92831

File tree

1 file changed

+1
-3
lines changed
  • src/schema-parser/base-schema-parsers

1 file changed

+1
-3
lines changed

src/schema-parser/base-schema-parsers/object.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ class ObjectSchemaParser extends MonoSchemaParser {
1717
description: this.schemaFormatters.formatDescription(
1818
this.schema.description,
1919
),
20-
allFieldsAreOptional: !contentProperties
21-
.values()
22-
.some((part) => part.isRequired),
20+
allFieldsAreOptional: !contentProperties.some((part) => part.isRequired),
2321
content: contentProperties,
2422
};
2523
}

0 commit comments

Comments
 (0)