fix(json-schema-2020-12): handle boolean schemas properly

Refs #8513
This commit is contained in:
Vladimir Gorej
2023-04-24 15:33:18 +02:00
committed by Vladimír Gorej
parent a9dc6b0b05
commit 66d55034b8
6 changed files with 10 additions and 10 deletions

View File

@@ -136,14 +136,14 @@ export const isExpandable = (schema) => {
schema?.allOf ||
schema?.anyOf ||
schema?.oneOf ||
schema?.not ||
schema?.if ||
schema?.then ||
schema?.else ||
Object.hasOwn(schema, "not") ||
Object.hasOwn(schema, "if") ||
Object.hasOwn(schema, "then") ||
Object.hasOwn(schema, "else") ||
schema?.dependentSchemas ||
schema?.prefixItems ||
schema?.items ||
schema?.contains ||
Object.hasOwn(schema, "contains") ||
schema?.properties ||
schema?.patternProperties ||
schema?.description