{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-openshift/json-schema/red-hat-openshift-route-list-schema.json",
  "title": "RouteList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-openshift-routes-api-openapi.yml#/components/schemas/RouteList",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Route"
      }
    }
  },
  "$defs": {
    "ObjectMeta": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "namespace": {
          "type": "string"
        },
        "uid": {
          "type": "string"
        },
        "resourceVersion": {
          "type": "string"
        },
        "creationTimestamp": {
          "type": "string",
          "format": "date-time"
        },
        "labels": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "annotations": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "Route": {
      "type": "object",
      "properties": {
        "apiVersion": {
          "type": "string",
          "default": "route.openshift.io/v1"
        },
        "kind": {
          "type": "string",
          "default": "Route"
        },
        "metadata": {
          "$ref": "#/$defs/ObjectMeta"
        },
        "spec": {
          "type": "object",
          "properties": {
            "host": {
              "type": "string",
              "description": "Hostname for the route"
            },
            "path": {
              "type": "string"
            },
            "to": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "default": "Service"
                },
                "name": {
                  "type": "string"
                },
                "weight": {
                  "type": "integer"
                }
              }
            },
            "port": {
              "type": "object",
              "properties": {
                "targetPort": {
                  "type": "string"
                }
              }
            },
            "tls": {
              "type": "object",
              "properties": {
                "termination": {
                  "type": "string",
                  "enum": [
                    "edge",
                    "passthrough",
                    "reencrypt"
                  ]
                }
              }
            }
          }
        },
        "status": {
          "type": "object"
        }
      }
    }
  }
}