Skip to content

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

Description

@rajacm2020

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions