Kong · Schema

CriteriaTemplateSchema

API GatewayAI GatewayAI ConnectivityAgent GatewayEvent GatewayMCP RegistryService MeshLLMKafkaKonnectOpen Source
View JSON Schema on GitHub

JSON Schema

kong-criteriatemplateschema-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CriteriaTemplateSchema",
  "title": "CriteriaTemplateSchema",
  "oneOf": [
    {
      "title": "EmptySchema",
      "type": "object",
      "nullable": true
    },
    {
      "type": "object",
      "required": [
        "type",
        "definition"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "simple"
          ]
        },
        "definition": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "enum": [
              "string",
              "number",
              "boolean"
            ]
          }
        }
      },
      "title": "CriteriaTemplateSimpleSchema",
      "description": "Defines the parameters required to evaluate the criteria using simple schema.\nSet to `null` when the given criteria does not rely on parameterization.\n"
    },
    {
      "type": "object",
      "required": [
        "type",
        "definition"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "json_schema"
          ]
        },
        "definition": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "title": "CriteriaTemplateJSONSchema",
      "description": "Defines the parameters required to evaluate the criteria using JSON schema.\nSet to `null` when the given criteria does not rely on parameterization.\n"
    }
  ]
}