feat(json-schema-2020-12): add support for default keyword (#8647)

Refs #8513
This commit is contained in:
Vladimír Gorej
2023-05-10 17:32:07 +02:00
committed by GitHub
parent de3e852569
commit e6d50999ba
6 changed files with 40 additions and 1 deletions

View File

@@ -162,7 +162,8 @@ export const isExpandable = (schema) => {
schema?.description ||
schema?.enum ||
fn.hasKeyword(schema, "const") ||
fn.hasKeyword(schema, "contentSchema")
fn.hasKeyword(schema, "contentSchema") ||
fn.hasKeyword(schema, "default")
)
}