inakiabt
inakiabt•12mo ago

Nested JSON schema required fields

Hi, I have the following schema where the goal is to make "name" and "id" required within "Persona" (also set the order of the fields). For some reason it doesn't work. Am I missing something or is it an issue? Thanks.
{
"properties": {
"Persona": {
"type": "object",
"description": "",
"properties": {
"name": {
"type": "string",
"description": "",
"default": ""
},
"id": {
"type": "number",
"description": ""
},
},
"order": ["name", "id"],
"required": [
"name",
"id"
]
}
},
"required": [
"Persona"
],
"type": "object",
"order": [
"Persona"
]
}
{
"properties": {
"Persona": {
"type": "object",
"description": "",
"properties": {
"name": {
"type": "string",
"description": "",
"default": ""
},
"id": {
"type": "number",
"description": ""
},
},
"order": ["name", "id"],
"required": [
"name",
"id"
]
}
},
"required": [
"Persona"
],
"type": "object",
"order": [
"Persona"
]
}
3 Replies
rubenf
rubenf•12mo ago
We will fix, thanks for the feedback fixed in latest
inakiabt
inakiabt•12mo ago
What should I do to use the latest version in order to see it fixed?
rubenf
rubenf•12mo ago
Nothing, just update to latest 🙂 unless you are using cloud which I'm updating right now so will be available in the next 10mins