feat(json-schema-2020-12): add support for enum keyword (#8623)

Refs #8513
This commit is contained in:
Vladimír Gorej
2023-05-07 17:16:39 +02:00
committed by GitHub
parent 8e4fde5ddd
commit 3b940d0d76
8 changed files with 62 additions and 0 deletions

View File

@@ -160,6 +160,7 @@ export const isExpandable = (schema) => {
fn.hasKeyword(schema, "unevaluatedItems") ||
fn.hasKeyword(schema, "unevaluatedProperties") ||
schema?.description ||
schema?.enum ||
fn.hasKeyword(schema, "const")
)
}