{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opoint/json-schema/opoint-glue-search-schema.json",
  "title": "GlueSearch",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opoint-search-api-openapi.yml#/components/schemas/GlueSearch",
  "type": "object",
  "properties": {
    "params": {
      "type": "object",
      "additionalProperties": {},
      "writeOnly": true
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GlueItem"
      },
      "minItems": 1
    },
    "expand_persistent": {
      "type": "boolean",
      "default": false
    }
  },
  "required": [
    "items"
  ],
  "$defs": {
    "GlueItem": {
      "type": "object",
      "properties": {
        "list_one": {
          "$ref": "#/$defs/SearchTerm"
        },
        "list_two": {
          "$ref": "#/$defs/SearchTerm"
        },
        "glue_start": {
          "type": "string"
        },
        "glue_middle": {
          "type": "string"
        },
        "glue_end": {
          "type": "string"
        }
      },
      "required": [
        "glue_end",
        "glue_start",
        "list_one"
      ]
    },
    "LinemodeEnum": {
      "enum": [
        "R",
        "O",
        "E"
      ],
      "type": "string",
      "description": "* `R` - Required\n* `O` - Optional\n* `E` - Exclude"
    },
    "ProfileItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "searchline": {
          "$ref": "#/$defs/SearchLine"
        },
        "linemode": {
          "$ref": "#/$defs/LinemodeEnum"
        },
        "searchmode": {
          "type": "string",
          "writeOnly": true
        }
      },
      "required": [
        "linemode",
        "searchline",
        "searchmode"
      ]
    },
    "SearchLine": {
      "type": "object",
      "properties": {
        "searchterm": {
          "type": "string"
        },
        "filters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SearchLineFilter"
          }
        }
      }
    },
    "SearchLineFilter": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ]
    },
    "SearchTerm": {
      "type": "object",
      "properties": {
        "searchterm": {
          "type": "string"
        },
        "expressions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProfileItem"
          }
        },
        "use_raw_query": {
          "type": "boolean"
        },
        "default_search": {
          "type": "string"
        }
      }
    }
  }
}