Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object inside Array Doesn't have a field name #241

Open
rajacm2020 opened this issue Aug 4, 2015 · 0 comments
Open

Object inside Array Doesn't have a field name #241

rajacm2020 opened this issue Aug 4, 2015 · 0 comments

Comments

@rajacm2020
Copy link

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.

@rajacm2020 rajacm2020 changed the title Add Object inside Array having a field ID Add Object inside Array Doesn't having a field name Aug 4, 2015
@rajacm2020 rajacm2020 changed the title Add Object inside Array Doesn't having a field name Add Object inside Array Doesn't have a field name Aug 4, 2015
@rajacm2020 rajacm2020 changed the title Add Object inside Array Doesn't have a field name Object inside Array Doesn't have a field name Aug 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant