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

Refs #8513
This commit is contained in:
Vladimir Gorej
2023-04-19 15:29:03 +02:00
committed by Vladimír Gorej
parent 7d5cad0a1a
commit d6d3e9ffc1
7 changed files with 51 additions and 5 deletions

View File

@@ -112,5 +112,5 @@ export const getType = (schema, processedSchemas = new WeakSet()) => {
export const isBooleanJSONSchema = (schema) => typeof schema === "boolean"
export const isExpandable = (schema) => {
return schema?.description || schema?.properties
return schema?.description || schema?.properties || schema?.$schema
}