{ "$schema": "http://json-schema.org/draft-06/schema#", "id": "definitions", "definitions": { "id": { "description": "Unique identifier", "example": 123456, "readOnly": true, "type": "integer", "minimum": 1 }, "_id": { "description": "Unique identifier", "example": "dfgbkjwj23asdad23gbweg", "readOnly": true, "type": "string", "minLength": 1 }, "hostname": { "definition": "Fully Qualified Host Name", "type": "string", "minLength": 2, "example": "myhost.example.com" }, "expand": { "anyOf": [ { "type": "null" }, { "type": "array", "minItems": 1, "items": { "type": "string" } } ] }, "sort": { "type": "array", "minItems": 1, "items": { "type": "object", "required": [ "field", "dir" ], "additionalProperties": false, "properties": { "field": { "type": "string" }, "dir": { "type": "string", "pattern": "^(asc|desc)$" } } } } } }