Not currently using a UI Schema. I created two definitions to highlight the issue, one called ‘recurrence’ and another called ‘recurrence_array’. When referencing the ‘recurrence’ it does NOT render, however when I reference ‘recurrence_array’ it does. The difference being one is a single instance versus being an array. For some reason, changing to an items allows it to show, however not clear why.
This is the part not working
"recurrence": {
"type": "object",
"$ref": "#/definitions/recurrence"
},
Full Shema Json.
{
"definitions": {
"property": {
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"description": {
"title": "Long Description",
"type": "string"
},
"done": {
"type": "boolean"
},
"due_date": {
"type": "string",
"format": "date"
},
"rating": {
"type": "integer",
"maximum": 5
},
"recurrence": {
"type": "object",
"$ref": "#/definitions/recurrence"
},
"recurrence_array": {
"type": "array",
"items": {
"$ref": "#/definitions/recurrence_array"
}
}
},
"required": ["name", "due_date"]
},
"recurrence": {
"type": "object",
"properties": {
"recurrence": {
"type": "string",
"enum": ["Never", "Daily", "Weekly", "Monthly"]
},
"recurrence_interval": {
"type": "integer"
}
}
},
"recurrence_array": {
"type": "object",
"properties": {
"recurrence_array": {
"type": "string",
"enum": ["Never", "Daily", "Weekly", "Monthly"]
},
"recurrence_interval_array": {
"type": "integer"
}
}
}
},
"properties": {
"property": {
"$ref": "#/definitions/property"
}
}
}