Allowed kind in storage create storage api
Where can I get information about allowed kind in storage create schema API. if I want to specify 'array of objects' how to specify it? Consider the data format is as below: data { name: "area name", country: "xyz", wells:[ name: "well1", type: "planning", coordinates: { latitute:12345, longitude: 1235 } ] }
to make above data searchable I need to connect it with storage schema. When I tried to create schema using below service, its giving me error that - Schema item 'wells' has an invalid data type 'object', cay you please suggest how to add array or list in schema kind for wells array?
api/storage/v2/schemas { "kind": "common:wks:welldata:1.0.0", "schema": [
{
"path": "name",
"kind": "string"
},
{
"path": "country",
"kind": "string"
},
{
"path": "wells",
"kind": "object"
}
]
}