Kong · Schema

ByCustomFieldSelector

Entity selector that include entities by a custom field.

API GatewayAI GatewayAI ConnectivityAgent GatewayEvent GatewayMCP RegistryService MeshLLMKafkaKonnectOpen Source

Properties

Name Type Description
selector string
selector_parameters object
View JSON Schema on GitHub

JSON Schema

kong-bycustomfieldselector-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ByCustomFieldSelector",
  "title": "ByCustomFieldSelector",
  "description": "Entity selector that include entities by a custom field.",
  "type": "object",
  "properties": {
    "selector": {
      "type": "string",
      "enum": [
        "custom_field"
      ]
    },
    "selector_parameters": {
      "oneOf": [
        {
          "type": "object",
          "title": "StringCustomFieldSelectorParams",
          "required": [
            "field",
            "value",
            "operator"
          ],
          "properties": {
            "field": {
              "description": "Name of the custom field.",
              "type": "string"
            },
            "value": {
              "type": "string"
            },
            "operator": {
              "$ref": "#/components/schemas/StringSelectorOperator"
            }
          }
        },
        {
          "type": "object",
          "title": "NumberCustomFieldSelectorParams",
          "required": [
            "field",
            "value",
            "operator"
          ],
          "properties": {
            "field": {
              "description": "Name of the custom field.",
              "type": "string"
            },
            "value": {
              "type": "number"
            },
            "operator": {
              "$ref": "#/components/schemas/NumberSelectorOperator"
            }
          }
        },
        {
          "type": "object",
          "title": "BooleanCustomFieldSelectorParams",
          "required": [
            "field",
            "value",
            "operator"
          ],
          "properties": {
            "field": {
              "description": "Name of the custom field.",
              "type": "string"
            },
            "value": {
              "type": "boolean"
            },
            "operator": {
              "$ref": "#/components/schemas/BooleanSelectorOperator"
            }
          }
        },
        {
          "type": "object",
          "title": "UrlCustomFieldSelectorParams",
          "required": [
            "field",
            "subfield",
            "value",
            "operator"
          ],
          "properties": {
            "field": {
              "description": "Name of the custom field.",
              "type": "string"
            },
            "subfield": {
              "description": "Specify which subfield of the `url` custom field value to use for selection.",
              "type": "string",
              "enum": [
                "name",
                "link"
              ],
              "x-speakeasy-unknown-values": "allow"
            },
            "value": {
              "type": "string"
            },
            "operator": {
              "$ref": "#/components/schemas/StringSelectorOperator"
            }
          }
        }
      ]
    }
  },
  "required": [
    "selector",
    "selector_parameters"
  ]
}