When serving OGC API Feature Services the Queryables conformance class adds an endpoint collections/<id>/queryables, which lists all attributes that can be used for filtering the dataset. When accessing this resource as application/json+schema or application/yaml the properties array contains all attributes with their human-readable name as key and up to three members: title, type and format, that right now always seem to be set to the same value, i.e. the data type of the attribute (string, integer etc.).
"properties": {
"Object ID": {
"title": "integer",
"type": "integer"
},
"Short Name": {
"title": "string",
"type": "string",
"format": "string"
},
"Long Name": {
"title": "string",
"type": "string",
"format": "string"
},
...
}
Isn’t it more plausible to use the title-attribute for the human-readable name, and the technical name as the array key, e.g. like ldproxy does: https://demo.ldproxy.net/zoomstack/collections/roads_regional/queryables?f=json
"properties": {
"objectid": {
"title": "Object ID",
"type": "integer"
},
"shortname": {
"title": "Short Name",
"type": "string"
},
"longname": {
"title": "Long Name",
"type": "string"
},
...
}
Or is it already possible to access the title-attribute to serve human-readable names somehow? Is there a template file I can manipulate?
Sorry if this has been discussed before. And thanks for any help.
