{ "definitions": { "number": { "oneOf": [ { "type": "number", "description": "Равно" }, { "type": "array", "items": { "type": "number" }, "description": "Содержится в списке" }, { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "$eq": { "type": "number", "description": "Равно" }, "$ne": { "type": "number", "description": "Не равно" }, "$gt": { "type": "number", "description": "Больше" }, "$gte": { "type": "number", "description": "Больше или равно" }, "$lt": { "type": "number", "description": "Меньше" }, "$lte": { "type": "number", "description": "Меньше" }, "$in": { "type": "array", "items": { "type": "number" }, "description": "Содержится в списке" } } } ] }, "string": { "oneOf": [ { "type": "string", "description": "Равно" }, { "type": "array", "items": { "type": "string" }, "description": "Содержится в списке" }, { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "$eq": { "type": "string", "description": "Равно" }, "$ne": { "type": "string", "description": "Не равно" }, "$like": { "type": "string", "description": "Содержит" }, "$ilike": { "type": "string", "description": "Содержит регистронезависимо" }, "$in": { "type": "array", "items": { "type": "string" }, "description": "Содержится в списке" } } } ] }, "datetime": { "oneOf": [ { "type": "string", "format": "date-time", "description": "Равно" }, { "type": "array", "items": { "type": "string" }, "format": "date-time", "description": "Содержится в списке" }, { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "$eq": { "type": "string", "format": "date-time", "description": "Равно" }, "$ne": { "type": "string", "format": "date-time", "description": "Не равно" }, "$gt": { "type": "string", "format": "date-time", "description": "Больше" }, "$gte": { "type": "string", "format": "date-time", "description": "Больше или равно" }, "$lt": { "type": "string", "format": "date-time", "description": "Меньше" }, "$lte": { "type": "string", "format": "date-time", "description": "Меньше" }, "$in": { "type": "array", "items": { "type": "string", "format": "date-time" }, "description": "Содержится в списке" } } } ] }, "uuid": { "oneOf": [ { "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", "description": "Равно" }, { "type": "array", "items": { "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "description": "Содержится в списке" }, { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "$eq": { "type": "number", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", "description": "Равно" }, "$ne": { "type": "number", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", "description": "Не равно" }, "$like": { "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", "description": "Содержит" }, "$ilike": { "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", "description": "Содержит регистронезависимо" }, "$in": { "type": "array", "items": { "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", "type": "string" }, "description": "Содержится в списке" } } } ] }, "null": { "oneOf": [ { "type": "null", "description": "Равно" }, { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "$eq": { "type": "null", "description": "Равно" }, "$ne": { "type": "null", "description": "Не равно" } } } ] }, "boolean": { "oneOf": [ { "type": "boolean", "description": "Равно" }, { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "$eq": { "type": "boolean", "description": "Равно" }, "$ne": { "type": "boolean", "description": "Не равно" } } } ] }, "sorting": { "type": "number", "enum": [ -1, 1 ] } } }