Kong · Schema

API Version Request

API GatewayAI GatewayAI ConnectivityAgent GatewayEvent GatewayMCP RegistryService MeshLLMKafkaKonnectOpen-Source

Properties

Name Type Description
version string The version of the api.
spec object
View JSON Schema on GitHub

JSON Schema

kong-apiversionrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/APIVersionRequest",
  "title": "API Version Request",
  "type": "object",
  "properties": {
    "version": {
      "description": "The version of the api.",
      "type": "string",
      "example": "1.0.0"
    },
    "spec": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "content": {
          "description": "The raw content of API specification, in json or yaml format (OpenAPI or AsyncAPI).",
          "example": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Example API\",\"version\":\"1.0.0\"},\"paths\":{\"/example\":{\"get\":{\"summary\":\"Example endpoint\",\"responses\":{\"200\":{\"description\":\"Successful response\"}}}}}}",
          "type": "string"
        }
      }
    }
  },
  "additionalProperties": false
}