fix(json-schema-2020-12): fix rendering of items keywords (#8674)

As JSON Schema 2020-12 can be represented as
a Boolean Schema, different keyword detection
needs to be used.

Refs #8513
This commit is contained in:
Vladimír Gorej
2023-05-16 12:45:34 +02:00
committed by GitHub
parent 2f0282d063
commit 67132cc726
2 changed files with 4 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ export const isExpandable = (schema) => {
fn.hasKeyword(schema, "else") ||
schema?.dependentSchemas ||
schema?.prefixItems ||
schema?.items ||
fn.hasKeyword(schema, "items") ||
fn.hasKeyword(schema, "contains") ||
schema?.properties ||
schema?.patternProperties ||