{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/theholisticcare/json-schema/theholisticcare-practice-detail-response-schema.json",
  "title": "PracticeDetailResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/theholisticcare-practices-api-openapi.yml#/components/schemas/PracticeDetailResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/PracticeDetail"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Meta": {
      "type": "object",
      "description": "Present on every successful response.",
      "properties": {
        "generated_at": {
          "type": "string",
          "format": "date-time"
        },
        "provider": {
          "type": "string"
        },
        "source": {
          "type": "string"
        }
      }
    },
    "Practice": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The stable public track ID (same value as `track_id`), in the form \"SL-*\". Never the raw Sanity `_id`."
        },
        "slug": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "practice"
          ]
        },
        "track_id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "excerpt": {
          "type": "string"
        },
        "audio_url": {
          "type": "string",
          "description": "Direct link to the MP3 file (Cloudflare R2). Never proxied."
        },
        "read_time_minutes": {
          "type": "integer"
        },
        "canonical_url": {
          "type": "string"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "PracticeDetail": {
      "allOf": [
        {
          "$ref": "#/$defs/Practice"
        },
        {
          "type": "object",
          "properties": {
            "related_practices": {
              "description": "Free practices only — a paid track can never appear here even as a reference.",
              "type": "array",
              "items": {
                "$ref": "#/$defs/RelatedRef"
              }
            }
          }
        }
      ]
    },
    "RelatedRef": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      }
    }
  }
}