{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/MetadataQueryIndex", "title": "Metadata query index", "type": "object", "x-box-resource-id": "metadata_query_index", "x-box-tag": "search", "description": "A metadata query index", "required": [ "type", "status" ], "properties": { "id": { "type": "string", "example": "-9876", "description": "The ID of the metadata query index." }, "type": { "type": "string", "description": "Value is always `metadata_query_index`", "example": "metadata_query_index", "nullable": false }, "status": { "type": "string", "description": "The status of the metadata query index", "example": "active", "enum": [ "building", "active", "disabled" ], "nullable": false }, "fields": { "type": "array", "description": "A list of template fields which make up the index.", "items": { "type": "object", "description": "The field which makes up the index.", "allOf": [ { "properties": { "key": { "type": "string", "example": "vendor name", "description": "The metadata template field key." }, "sort_direction": { "type": "string", "example": "asc", "description": "The sort direction of the field.", "enum": [ "asc", "desc" ] } } } ] } } } }