You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot generate schema from reference hyperschema #290
The input document is a modified version of "draft-07-schema.json", the JSON Schema Metaschema from 2017. Self-references cannot be handled (see #289). The problems here are less clear.
The initial error is that we don't currently handle the general case of type arrays:
"type": ["object", "boolean"],
I see other looming problems such as "if": {"$ref": "#"}, i.e. a ref to nothing? and "$ref": "#/definitions/schemaArray" which doesn't appear to be defined in this schema.
According to https://json-schema.org/understanding-json-schema/structuring.html#recursion , "#" as a "$ref" target should refer to the schema currently being parsed. ("#/definitions/schemaArray" was removed as it refers to "#", which could not be resolved (see #289 ), but is absolutely an error in this schema as presented.)
Activity
ahl commentedon May 10, 2023
The initial error is that we don't currently handle the general case of
typearrays:I see other looming problems such as
"if": {"$ref": "#"},i.e. a ref to nothing? and"$ref": "#/definitions/schemaArray"which doesn't appear to be defined in this schema.jasminemoore-verses commentedon May 10, 2023
According to https://json-schema.org/understanding-json-schema/structuring.html#recursion , "#" as a "$ref" target should refer to the schema currently being parsed. ("#/definitions/schemaArray" was removed as it refers to "#", which could not be resolved (see #289 ), but is absolutely an error in this schema as presented.)
ahl commentedon May 27, 2023
See the resolution of #289