{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentic-atlas-dev/json-schema/agentic-atlas-dev-learning-paths-read-schema.json",
  "title": "Tour reading",
  "description": "The walks the active Release seals, or none; `paths` says which. A sealed walk is answered 200 and an empty `paths` 404, and both are readings of the active Release: the same shape, X-Catalog-Revision on each, and no `error` key on the miss.",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentic-atlas-dev-openapi.json#/components/schemas/LearningPathsRead",
  "type": "object",
  "properties": {
    "catalog_revision": {
      "type": "object",
      "description": "The active Release's Catalog revision, the same identity the X-Catalog-Revision header carries, with the provenance counts beside it.",
      "properties": {
        "revision": {
          "type": "string",
          "description": "The revision two responses must share to be comparable."
        }
      },
      "required": [
        "revision"
      ]
    },
    "paths": {
      "type": "array",
      "description": "The sealed walks in presentation order. Empty when the Release seals none, answered 404.",
      "items": {
        "type": "object",
        "description": "One curated walk through the Release.",
        "properties": {
          "id": {
            "type": "string",
            "description": "The walk's id."
          },
          "title": {
            "type": "string"
          },
          "intro": {
            "type": "string",
            "description": "The publisher's introduction to the walk."
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One step of the walk, in the order it is read.",
              "properties": {
                "position": {
                  "type": "integer",
                  "description": "The step's 1-based place in the walk."
                },
                "narration": {
                  "type": "string",
                  "description": "Why this step follows the last."
                },
                "node": {
                  "type": "object",
                  "description": "The Node this step reads, as the tour field draws it.",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The Node's canonical id."
                    },
                    "title": {
                      "type": "string"
                    },
                    "hook": {
                      "type": "string",
                      "description": "The Node's one-line hook."
                    },
                    "kind": {
                      "type": "string",
                      "description": "The Node's kind."
                    }
                  },
                  "required": [
                    "id",
                    "title",
                    "hook",
                    "kind"
                  ]
                }
              },
              "required": [
                "position",
                "narration",
                "node"
              ]
            }
          }
        },
        "required": [
          "id",
          "title",
          "intro",
          "steps"
        ]
      }
    }
  },
  "required": [
    "catalog_revision",
    "paths"
  ]
}