{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://article134-tech.github.io/lititzbmx-docs/campaigns/10000-hours/schema/mixtape-track.schema.json",
  "title": "Lititz BMX 10,000 Hours Mixtape Track",
  "type": "object",
  "required": [
    "schema_version",
    "record_type",
    "campaign_id",
    "track_number",
    "section",
    "slug",
    "title",
    "source_url",
    "quote",
    "inspiration",
    "images",
    "status"
  ],
  "properties": {
    "schema_version": {
      "type": "string"
    },
    "record_type": {
      "const": "campaign_mixtape_track"
    },
    "campaign_id": {
      "const": "CAMPAIGN-10000-HOURS"
    },
    "track_number": {
      "type": "integer",
      "minimum": 1,
      "maximum": 23
    },
    "section": {
      "enum": [
        "Intro",
        "Side A",
        "Side B",
        "Outro"
      ]
    },
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9-]+$"
    },
    "title": {
      "type": "string"
    },
    "source_url": {
      "type": "string",
      "format": "uri"
    },
    "quote": {
      "type": "string"
    },
    "prompt": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "published_page_text": {
      "type": [
        "string",
        "null"
      ]
    },
    "inspiration": {
      "type": "object",
      "required": [
        "url",
        "attribution_status",
        "audio_archived"
      ],
      "properties": {
        "artist": {
          "type": [
            "string",
            "null"
          ]
        },
        "song": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "attribution_status": {
          "type": "string"
        },
        "audio_archived": {
          "const": false
        }
      }
    },
    "images": {
      "type": "object",
      "properties": {
        "page_capture": {
          "type": [
            "string",
            "null"
          ]
        },
        "standalone_source": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "status": {
      "const": "source_preserved"
    }
  }
}
