-
Notifications
You must be signed in to change notification settings - Fork 412
Description
Hi,
I want to add a objects inside a array. I have to set a object name for that like
"identifiers":
[
"identifer": {
"primary" : true
}
]
Here "identifer" is the object name. But the object inside array always created as a empty object name like
"identifiers":
[
{
"identifer": {
"primary" : true
}
}
]
I used the following JSON code,
"identifiers": {
"title": "Identifiers",
"type": "array",
"location": "body",
"items": {
"title": "Identifier Fields",
"type": "object",
"properties": {
"identifer": {
"type": "object",
"properties": {
"primary": {
"title": "primary",
"required":true,
"type":"boolean",
"description": "",
"default": true
},
}
}
}
}
}
How to achieve this. please help me. Is there any option for that.
Note : I can able to do using Object inside Object. but i dont want that.
Thanks in advance.