{
  "lexicon": 1,
  "id": "com.danhon.atprotomedia.episode",
  "defs": {
    "main": {
      "type": "record",
      "description": "An independently addressable television episode. Numbering and air dates are descriptive metadata.",
      "key": "any",
      "record": {
        "type": "object",
        "required": ["title", "seriesUri"],
        "properties": {
          "title": { "type": "string", "maxLength": 512 },
          "description": { "type": "string", "maxLength": 3000 },
          "seriesUri": { "type": "string", "format": "at-uri" },
          "seasonUri": { "type": "string", "format": "at-uri" },
          "seasonNumber": { "type": "integer", "minimum": 0 },
          "episodeNumber": { "type": "integer", "minimum": 0 },
          "airDate": { "type": "string", "minLength": 10, "maxLength": 10, "description": "Date in YYYY-MM-DD form as represented by the publisher." }
        }
      }
    }
  }
}
