{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opper/json-schema/opper-dynamic-route-detail-schema.json",
  "title": "DynamicRouteDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opper-management-api-openapi.yml#/components/schemas/DynamicRouteDetail",
  "properties": {
    "active_version": {
      "properties": {
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "note": {
          "type": "string"
        },
        "uuid": {
          "format": "uuid",
          "type": "string"
        },
        "version_number": {
          "type": "integer"
        }
      },
      "required": [
        "uuid",
        "version_number",
        "note",
        "created_at"
      ],
      "type": "object"
    },
    "draft": {
      "properties": {
        "graph": {
          "description": "The draft graph (DynamicRouteGraph).",
          "type": "object"
        },
        "layout": {
          "description": "Editor canvas positions keyed by element id.",
          "type": "object"
        },
        "revision": {
          "type": "integer"
        },
        "validation": {
          "description": "Validation issues on the draft (DynamicRouteValidationIssue); empty when it is deployable.",
          "type": "array"
        }
      },
      "required": [
        "graph",
        "layout",
        "validation",
        "revision"
      ],
      "type": "object"
    },
    "latest_version_number": {
      "type": "integer"
    },
    "route": {
      "properties": {
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "deleted_at": {
          "format": "date-time",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "display_name": {
          "type": "string"
        },
        "draft_graph": {
          "description": "The draft graph (DynamicRouteGraph).",
          "type": "object"
        },
        "draft_layout": {
          "description": "Editor canvas positions keyed by element id.",
          "type": "object"
        },
        "draft_revision": {
          "type": "integer"
        },
        "draft_validation": {
          "description": "Validation issues on the draft (DynamicRouteValidationIssue); empty when it is deployable.",
          "type": "array"
        },
        "invocation_model": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        },
        "uuid": {
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "uuid",
        "name",
        "display_name",
        "invocation_model",
        "description",
        "draft_revision",
        "created_at",
        "updated_at"
      ],
      "type": "object"
    },
    "version_count": {
      "type": "integer"
    }
  },
  "required": [
    "route",
    "draft",
    "version_count"
  ],
  "type": "object"
}