{
  "lexicon": 1,
  "id": "com.danhon.atprotomedia.mapping",
  "defs": {
    "main": {
      "type": "record",
      "description": "A publisher’s claim that an external identifier and URL refer to an episode AT URI. The repository DID identifies the publisher.",
      "key": "any",
      "record": {
        "type": "object",
        "required": ["source", "externalId", "url", "episodeUri"],
        "properties": {
          "source": { "type": "string", "maxLength": 100, "knownValues": ["apple-tv", "bbc", "episode-page", "imdb"] },
          "externalId": { "type": "string", "maxLength": 512 },
          "url": { "type": "string", "format": "uri", "maxLength": 2048 },
          "episodeUri": { "type": "string", "format": "at-uri" }
        }
      }
    }
  }
}
