Skip to content

Support for Array of Array of Json Object in model properties #4132

Closed
@PRAKASH-SIVAGURUNATHAN

Description

@PRAKASH-SIVAGURUNATHAN

We have a model as shown below

{
  "name": "accounts",
  "plural": "accounts",
  "base": "PersistedModel",
  "idInjection": true,
  "options": {
    "validateUpsert": true
  },
  "properties": {
    "name": {
      "type": "string"
    },
    "items": {
      "type" : [
        [
          {"itemname": {"type": "string"}}
        ]
      ]
    }
  },
  "validations": [],
  "relations": {},
  "acls": [],
  "methods": {}
}

Loopback explorer show the below structure
screen shot 2019-02-07 at 5 07 37 pm

but during runtime operations the response of the items is not coming as array of array of json object as shown below

screen shot 2019-02-07 at 5 09 07 pm

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions