{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/balladic-com/json-schema/balladic-com-create-filter-request-schema.json",
  "title": "CreateFilterRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/balladic-com-filters-api-openapi.yml#/components/schemas/CreateFilterRequest",
  "properties": {
    "label": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1,
      "title": "Label"
    },
    "conditions": {
      "items": {
        "$ref": "#/$defs/FilterCondition"
      },
      "type": "array",
      "maxItems": 20,
      "minItems": 1,
      "title": "Conditions"
    }
  },
  "type": "object",
  "required": [
    "label",
    "conditions"
  ],
  "$defs": {
    "FilterCondition": {
      "properties": {
        "field": {
          "type": "string",
          "title": "Field"
        },
        "op": {
          "type": "string",
          "title": "Op"
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "boolean"
            },
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value"
        }
      },
      "type": "object",
      "required": [
        "field",
        "op"
      ],
      "title": "FilterCondition"
    }
  }
}