Closed estradamarkie closed 7 years ago
This is not a valid JSON Schema try something like this
{
"$schema": "http://json-schema.org/draft-03/schema#",
"type": "object",
"properties": {
"id": {
"name":"id",
"in":"query",
"required":false,
"type":"array",
"items":{
"type":"integer",
"format":"int32"
},
"collectionFormat":"multi"
},
"sku":{
"name":"sku",
"in":"query",
"required":false,
"type":"array",
"items":{
"type":"string"
},
"collectionFormat":"multi"
},
"code":{
"name":"code",
"in":"query",
"required":false,
"type":"array",
"items":{
"type":"string"
},
"collectionFormat":"multi"
}
}
}
@idelvall unfortunately I can't change how the JSON is being output therefore in this case its returning an array obj. Is there a way to render a form if the objects are in array[]?
You can easily construct a valid schema from the object you already have and then pass this new instance to the form
@idelvall yeah thanks, managed to make it work with title
property as well as a label.
Hi,
Is there a way to show labels if the object is an array? Also doesn't render this array as well, this array is coming from a
GET
request.