Open PengZhao-GitHub opened 4 months ago
Here is the JSON Schema - Inline $ref to definitions. It works well in the playground, but get error in the current master version.
{
"schema": {
"properties": {
"animal": {
"$ref": "#/definitions/animation"
}
},
"definitions": {
"animation": {
"type": "object",
"properties": {
"duration": {
"title": "Duration",
"type": "integer"
},
"stepper": {
"title": "Stepper",
"type": "string"
},
"then": {
"title": "Then",
"type": "array",
"maxItems": 1,
"items": {
"$ref": "#/definitions/animation"
},
"default": []
}
}
}
}
}
}
edited: added code block for readability
this is a bug in playground.. $ref is not currently supported
https://ulion.github.io/jsonform/playground/
JSON Schema - Inline $ref to definitions is supported in the playground above,
but when I use the example.html and give a schema with inline $ref, I get error as
"The JSON Form library returned: Error: JSONForm does not yet support schemas that use the $ref keyword. See: https://github.com/joshfire/jsonform/issues/54"
Any idea? thanks!