From cf9283111f38dbce6f090b979f045f657345ca9d Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Tue, 13 Aug 2024 12:31:28 +0900 Subject: [PATCH] Fix `e.values(...).some is not a function` Signed-off-by: Sora Morimoto --- src/schema-parser/base-schema-parsers/object.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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, }; }