I have the following schema and some how none of the properties defined in the anyOf section are getting validated by JSONForms. (specifically “days”, “hours” and “minutes”)
Schema
{
"title": "rent",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Generated for lease signing",
"type": "object",
"properties": {
"rent": {
"type": "object",
"properties": {
"pool": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"lease": {
"type": "object",
"properties": {
"lease-choice": {
"anyOf": [
{
"type":"object",
"title": "lease-value",
"properties" :{
"days": {
"type": "integer",
"minimum": 0,
"maximum": 365
},
"hours": {
"type": "integer",
"minimum": 0,
"maximum": 23
},
"minutes": {
"type": "integer",
"minimum": 0,
"maximum": 59
}
}
},
{
"type": "object",
"title": "infinite",
"properties": {
"infinite": {
"type": "boolean"
}
}
}
]
}
}
}
}
}
}
}
}
}
}
Attached below is the screenshot of the UI:
As you can see there is no validation happening.
Let me know if you need more information. Any help is much appreciated.