-
-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Schema - Multiple Definitions Errors Out #507
Comments
I tried converting it to have the properties method that it was expecting to no avail. I think that the bridge wasn't updated whenever the Somehow JSON Schema{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"CargoShip": {
"type": "object",
"additionalProperties": false,
"properties": {
"hatches": {
"type": "array",
"items": {
"$ref": "#/definitions/Hatch"
},
"minItems": 6,
"maxItems": 6
}
},
"required": [
"hatches"
],
"title": "CargoShip"
},
"Hatch": {
"type": "object",
"additionalProperties": false,
"properties": {
"panel": {
"type": "boolean"
},
"cargo": {
"type": "boolean"
}
},
"required": [
"cargo",
"panel"
],
"title": "Hatch"
},
"Rocket": {
"type": "object",
"additionalProperties": false,
"properties": {
"hatches": {
"type": "array",
"items": {
"$ref": "#/definitions/Hatch"
},
"minItems": 8,
"maxItems": 8
},
"highestLevel": {
"type": "integer"
}
},
"required": [
"hatches",
"highestLevel"
],
"title": "Rocket"
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"rocket": {
"$ref": "#/definitions/Rocket"
},
"cargoShip": {
"$ref": "#/definitions/CargoShip"
}
},
"required": [
"cargoShip",
"rocket"
]
} UPDATE: I found a resolver that could help tremendously. |
Hey @dacioromero |
Hi @dacioromero. As @janowsiany already said: we are working on it. |
The npm package hasn't been updated with the fix, could it be released soon? |
@dacioromero: I'll release it this week. |
When creating a
JSONSchemaBridge
of this schema it errors when inputted intoAutoForm
andValidatedForm
My initial impressions is that
JSONSchemaBridge
isn't expecting JSON Schema in the format that I used which I believe is standard.Apologies if my React code is a bit unconventional; I'm new.
Code and Logs
Source (omitted irrelevant parts)
Console logs
The text was updated successfully, but these errors were encountered: