{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "medium": {
      "type": "string",
      "enum": ["movie", "tv", "book", "podcast", "music", "game"]
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "creators": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "year": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1000,
          "maximum": 3000
        },
        {
          "type": "null"
        }
      ]
    },
    "external_ids": {
      "type": "object",
      "properties": {
        "openlibrary": {
          "type": ["string", "null"]
        },
        "isbn": {
          "type": ["string", "null"]
        },
        "musicbrainz": {
          "type": ["string", "null"]
        },
        "tmdb": {
          "type": ["string", "null"]
        },
        "imdb": {
          "type": ["string", "null"]
        },
        "podcastindex": {
          "type": ["string", "null"]
        },
        "feed_url": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        },
        "igdb": {
          "type": ["string", "null"]
        },
        "openlibrary_edition": {
          "type": "string",
          "pattern": "^\\/books\\/OL\\d+M$"
        },
        "wikidata": {
          "type": "string",
          "pattern": "^Q\\d+$"
        },
        "tvmaze": {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        },
        "apple_books": {
          "type": "string",
          "pattern": "^\\d+$"
        },
        "apple": {
          "type": "string",
          "pattern": "^\\d+$"
        },
        "musicbrainz_release": {
          "type": "string",
          "pattern": "^(?:release\\/)?[a-f0-9-]{36}$"
        },
        "meta": {
          "type": "object",
          "properties": {
            "created_at": {
              "type": ["string", "null"]
            },
            "updated_at": {
              "type": ["string", "null"]
            },
            "deleted_at": {
              "type": ["string", "null"]
            },
            "legacy_ref": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "table": {
                      "type": "string"
                    },
                    "key": {
                      "type": ["string", "number"]
                    },
                    "row": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": ["table", "key", "row"],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "dataset": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      },
      "required": ["openlibrary", "isbn", "musicbrainz", "tmdb", "imdb", "podcastindex", "feed_url", "igdb"],
      "additionalProperties": false
    },
    "genres": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "runtime_seconds": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "pages": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "episodes": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
          },
          "meta": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": ["string", "null"]
              },
              "updated_at": {
                "type": ["string", "null"]
              },
              "deleted_at": {
                "type": ["string", "null"]
              },
              "legacy_ref": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "table": {
                        "type": "string"
                      },
                      "key": {
                        "type": ["string", "number"]
                      },
                      "row": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["table", "key", "row"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dataset": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "required": ["label", "url", "id"],
        "additionalProperties": false
      }
    },
    "recommendation": {
      "type": ["string", "null"]
    },
    "quote": {
      "type": ["string", "null"]
    },
    "list_context": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "label": {
              "type": ["string", "null"]
            },
            "position": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "total": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "meta": {
              "type": "object",
              "properties": {
                "created_at": {
                  "type": ["string", "null"]
                },
                "updated_at": {
                  "type": ["string", "null"]
                },
                "deleted_at": {
                  "type": ["string", "null"]
                },
                "legacy_ref": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "table": {
                          "type": "string"
                        },
                        "key": {
                          "type": ["string", "number"]
                        },
                        "row": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": ["table", "key", "row"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dataset": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "required": ["label", "position", "total"],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "music_unit": {
      "anyOf": [
        {
          "type": "string",
          "enum": ["recording", "album", "artist"]
        },
        {
          "type": "null"
        }
      ]
    },
    "platforms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "edition": {
      "type": ["string", "null"]
    },
    "language": {
      "type": ["string", "null"]
    },
    "resolution": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": ["matched", "unresolved", "disabled", "ambiguous", "unavailable"]
            },
            "confidence": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "attribution": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "license": {
                    "type": "string"
                  },
                  "observed_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                  },
                  "meta": {
                    "type": "object",
                    "properties": {
                      "created_at": {
                        "type": ["string", "null"]
                      },
                      "updated_at": {
                        "type": ["string", "null"]
                      },
                      "deleted_at": {
                        "type": ["string", "null"]
                      },
                      "legacy_ref": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "table": {
                                "type": "string"
                              },
                              "key": {
                                "type": ["string", "number"]
                              },
                              "row": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["table", "key", "row"],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dataset": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": ["provider", "url", "license", "observed_at", "id"],
                "additionalProperties": false
              }
            },
            "candidates": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                  },
                  "title": {
                    "type": "string"
                  },
                  "creators": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "year": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "confidence": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "meta": {
                    "type": "object",
                    "properties": {
                      "created_at": {
                        "type": ["string", "null"]
                      },
                      "updated_at": {
                        "type": ["string", "null"]
                      },
                      "deleted_at": {
                        "type": ["string", "null"]
                      },
                      "legacy_ref": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "table": {
                                "type": "string"
                              },
                              "key": {
                                "type": ["string", "number"]
                              },
                              "row": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["table", "key", "row"],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dataset": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": ["id", "title", "creators", "year", "confidence"],
                "additionalProperties": false
              }
            },
            "meta": {
              "type": "object",
              "properties": {
                "created_at": {
                  "type": ["string", "null"]
                },
                "updated_at": {
                  "type": ["string", "null"]
                },
                "deleted_at": {
                  "type": ["string", "null"]
                },
                "legacy_ref": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "table": {
                          "type": "string"
                        },
                        "key": {
                          "type": ["string", "number"]
                        },
                        "row": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": ["table", "key", "row"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dataset": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "required": ["status", "confidence", "attribution", "candidates"],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "catalog_details": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "creator": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "release_date": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "runtime_seconds": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "pages": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "cast": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 140
                },
                "role": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 140
                },
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                },
                "meta": {
                  "type": "object",
                  "properties": {
                    "created_at": {
                      "type": ["string", "null"]
                    },
                    "updated_at": {
                      "type": ["string", "null"]
                    },
                    "deleted_at": {
                      "type": ["string", "null"]
                    },
                    "legacy_ref": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "table": {
                              "type": "string"
                            },
                            "key": {
                              "type": ["string", "number"]
                            },
                            "row": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": ["table", "key", "row"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataset": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": ["name", "id"],
              "additionalProperties": false
            }
          },
          "crew": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 140
                },
                "role": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 140
                },
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                },
                "meta": {
                  "type": "object",
                  "properties": {
                    "created_at": {
                      "type": ["string", "null"]
                    },
                    "updated_at": {
                      "type": ["string", "null"]
                    },
                    "deleted_at": {
                      "type": ["string", "null"]
                    },
                    "legacy_ref": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "table": {
                              "type": "string"
                            },
                            "key": {
                              "type": ["string", "number"]
                            },
                            "row": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": ["table", "key", "row"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataset": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": ["name", "id"],
              "additionalProperties": false
            }
          },
          "evidence": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string",
                "format": "uri"
              },
              "observed_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "expires_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "terms_url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "attribution": {
                "type": "string"
              },
              "export_policy": {
                "type": "string",
                "enum": ["allow", "attributed", "omit"]
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "source",
              "source_url",
              "observed_at",
              "expires_at",
              "terms_url",
              "license",
              "attribution",
              "export_policy"
            ],
            "additionalProperties": false
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
          },
          "meta": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": ["string", "null"]
              },
              "updated_at": {
                "type": ["string", "null"]
              },
              "deleted_at": {
                "type": ["string", "null"]
              },
              "legacy_ref": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "table": {
                        "type": "string"
                      },
                      "key": {
                        "type": ["string", "number"]
                      },
                      "row": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["table", "key", "row"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dataset": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "required": ["evidence", "id"],
        "additionalProperties": false
      }
    },
    "metadata_version": {
      "type": "number",
      "const": 1
    },
    "metadata_policy_version": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "availability": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "region": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "provider": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "logo_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["id", "name", "logo_url"],
            "additionalProperties": false
          },
          "kind": {
            "type": "string",
            "enum": ["stream", "rent", "buy", "free", "borrow", "sample", "download"]
          },
          "access": {
            "type": "string",
            "enum": ["subscription", "ads", "addon", "library_card", "purchase", "open", "unknown"]
          },
          "format": {
            "type": "string",
            "enum": ["video", "print", "ebook", "audiobook", "audio"]
          },
          "target": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string",
                "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
              },
              "entity_type": {
                "type": "string",
                "enum": [
                  "work",
                  "edition",
                  "series",
                  "show",
                  "season",
                  "episode",
                  "release-group",
                  "release",
                  "recording",
                  "artist",
                  "album",
                  "track",
                  "book",
                  "movie",
                  "tv",
                  "podcast"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["provider", "entity_type", "id"],
            "additionalProperties": false
          },
          "scope": {
            "type": "string",
            "enum": ["work", "edition", "season", "episode", "album", "track"]
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "link_kind": {
            "type": "string",
            "enum": ["direct", "aggregator"]
          },
          "affiliate": {
            "type": "boolean"
          },
          "ios_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "price": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "amount_decimal": {
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d+)?$"
                  },
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  },
                  "meta": {
                    "type": "object",
                    "properties": {
                      "created_at": {
                        "type": ["string", "null"]
                      },
                      "updated_at": {
                        "type": ["string", "null"]
                      },
                      "deleted_at": {
                        "type": ["string", "null"]
                      },
                      "legacy_ref": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "table": {
                                "type": "string"
                              },
                              "key": {
                                "type": ["string", "number"]
                              },
                              "row": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["table", "key", "row"],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dataset": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": ["amount_decimal", "currency"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "quality": {
            "type": ["string", "null"]
          },
          "addon": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "meta": {
                    "type": "object",
                    "properties": {
                      "created_at": {
                        "type": ["string", "null"]
                      },
                      "updated_at": {
                        "type": ["string", "null"]
                      },
                      "deleted_at": {
                        "type": ["string", "null"]
                      },
                      "legacy_ref": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "table": {
                                "type": "string"
                              },
                              "key": {
                                "type": ["string", "number"]
                              },
                              "row": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["table", "key", "row"],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dataset": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": ["id", "name"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "evidence": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string",
                "format": "uri"
              },
              "observed_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "expires_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "terms_url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "attribution": {
                "type": "string"
              },
              "export_policy": {
                "type": "string",
                "enum": ["allow", "attributed", "omit"]
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "source",
              "source_url",
              "observed_at",
              "expires_at",
              "terms_url",
              "license",
              "attribution",
              "export_policy"
            ],
            "additionalProperties": false
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
          },
          "meta": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": ["string", "null"]
              },
              "updated_at": {
                "type": ["string", "null"]
              },
              "deleted_at": {
                "type": ["string", "null"]
              },
              "legacy_ref": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "table": {
                        "type": "string"
                      },
                      "key": {
                        "type": ["string", "number"]
                      },
                      "row": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["table", "key", "row"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dataset": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "region",
          "provider",
          "kind",
          "access",
          "format",
          "target",
          "scope",
          "url",
          "link_kind",
          "affiliate",
          "ios_url",
          "price",
          "quality",
          "addon",
          "evidence",
          "id"
        ],
        "additionalProperties": false
      }
    },
    "availability_checks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "region": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "source": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["ok", "empty", "unavailable", "disabled"]
          },
          "checked_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "complete": {
            "type": "boolean"
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
          },
          "meta": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": ["string", "null"]
              },
              "updated_at": {
                "type": ["string", "null"]
              },
              "deleted_at": {
                "type": ["string", "null"]
              },
              "legacy_ref": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "table": {
                        "type": "string"
                      },
                      "key": {
                        "type": ["string", "number"]
                      },
                      "row": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["table", "key", "row"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dataset": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "required": ["region", "source", "status", "checked_at", "expires_at", "complete", "id"],
        "additionalProperties": false
      }
    },
    "destinations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "target": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string",
                "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
              },
              "entity_type": {
                "type": "string",
                "enum": [
                  "work",
                  "edition",
                  "series",
                  "show",
                  "season",
                  "episode",
                  "release-group",
                  "release",
                  "recording",
                  "artist",
                  "album",
                  "track",
                  "book",
                  "movie",
                  "tv",
                  "podcast"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["provider", "entity_type", "id"],
            "additionalProperties": false
          },
          "label": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "link_kind": {
            "type": "string",
            "enum": ["catalog", "search", "publisher"]
          },
          "region": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "affiliate": {
            "type": "boolean"
          },
          "evidence": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string",
                "format": "uri"
              },
              "observed_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "expires_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "terms_url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "attribution": {
                "type": "string"
              },
              "export_policy": {
                "type": "string",
                "enum": ["allow", "attributed", "omit"]
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "source",
              "source_url",
              "observed_at",
              "expires_at",
              "terms_url",
              "license",
              "attribution",
              "export_policy"
            ],
            "additionalProperties": false
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
          },
          "meta": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": ["string", "null"]
              },
              "updated_at": {
                "type": ["string", "null"]
              },
              "deleted_at": {
                "type": ["string", "null"]
              },
              "legacy_ref": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "table": {
                        "type": "string"
                      },
                      "key": {
                        "type": ["string", "number"]
                      },
                      "row": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["table", "key", "row"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dataset": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "required": ["label", "provider", "url", "link_kind", "region", "affiliate", "evidence", "id"],
        "additionalProperties": false
      }
    },
    "artwork": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": ["cover", "poster", "backdrop", "episode"]
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "width": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "height": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "language": {
            "type": ["string", "null"]
          },
          "target": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string",
                "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
              },
              "entity_type": {
                "type": "string",
                "enum": [
                  "work",
                  "edition",
                  "series",
                  "show",
                  "season",
                  "episode",
                  "release-group",
                  "release",
                  "recording",
                  "artist",
                  "album",
                  "track",
                  "book",
                  "movie",
                  "tv",
                  "podcast"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["provider", "entity_type", "id"],
            "additionalProperties": false
          },
          "storage_policy": {
            "type": "string",
            "enum": ["remote_only", "cache_allowed"]
          },
          "evidence": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string",
                "format": "uri"
              },
              "observed_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "expires_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "terms_url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "attribution": {
                "type": "string"
              },
              "export_policy": {
                "type": "string",
                "enum": ["allow", "attributed", "omit"]
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "source",
              "source_url",
              "observed_at",
              "expires_at",
              "terms_url",
              "license",
              "attribution",
              "export_policy"
            ],
            "additionalProperties": false
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
          },
          "meta": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": ["string", "null"]
              },
              "updated_at": {
                "type": ["string", "null"]
              },
              "deleted_at": {
                "type": ["string", "null"]
              },
              "legacy_ref": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "table": {
                        "type": "string"
                      },
                      "key": {
                        "type": ["string", "number"]
                      },
                      "row": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["table", "key", "row"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dataset": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "required": ["role", "url", "width", "height", "language", "target", "storage_policy", "evidence", "id"],
        "additionalProperties": false
      }
    },
    "series": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ref": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string",
                "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
              },
              "entity_type": {
                "type": "string",
                "enum": [
                  "work",
                  "edition",
                  "series",
                  "show",
                  "season",
                  "episode",
                  "release-group",
                  "release",
                  "recording",
                  "artist",
                  "album",
                  "track",
                  "book",
                  "movie",
                  "tv",
                  "podcast"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["provider", "entity_type", "id"],
            "additionalProperties": false
          },
          "name": {
            "type": "string"
          },
          "relation": {
            "type": "string",
            "enum": ["book_series", "movie_collection", "franchise"]
          },
          "member": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string",
                "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
              },
              "entity_type": {
                "type": "string",
                "enum": [
                  "work",
                  "edition",
                  "series",
                  "show",
                  "season",
                  "episode",
                  "release-group",
                  "release",
                  "recording",
                  "artist",
                  "album",
                  "track",
                  "book",
                  "movie",
                  "tv",
                  "podcast"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["provider", "entity_type", "id"],
            "additionalProperties": false
          },
          "position": {
            "type": ["string", "null"]
          },
          "order": {
            "type": "string",
            "enum": ["publication", "release", "chronological", "provider", "unknown"]
          },
          "total": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "ongoing": {
            "type": ["boolean", "null"]
          },
          "complete": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": ["string", "null"]
          },
          "entries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ref": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string",
                      "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
                    },
                    "entity_type": {
                      "type": "string",
                      "enum": [
                        "work",
                        "edition",
                        "series",
                        "show",
                        "season",
                        "episode",
                        "release-group",
                        "release",
                        "recording",
                        "artist",
                        "album",
                        "track",
                        "book",
                        "movie",
                        "tv",
                        "podcast"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "created_at": {
                          "type": ["string", "null"]
                        },
                        "updated_at": {
                          "type": ["string", "null"]
                        },
                        "deleted_at": {
                          "type": ["string", "null"]
                        },
                        "legacy_ref": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "table": {
                                  "type": "string"
                                },
                                "key": {
                                  "type": ["string", "number"]
                                },
                                "row": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": ["table", "key", "row"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "dataset": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "required": ["provider", "entity_type", "id"],
                  "additionalProperties": false
                },
                "medium": {
                  "type": "string",
                  "enum": ["book", "movie", "tv"]
                },
                "title": {
                  "type": "string"
                },
                "year": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "position": {
                  "type": ["string", "null"]
                },
                "sort_number": {
                  "type": ["number", "null"]
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "artwork": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "role": {
                        "type": "string",
                        "enum": ["cover", "poster", "backdrop", "episode"]
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "width": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "height": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "language": {
                        "type": ["string", "null"]
                      },
                      "target": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "enum": [
                              "openlibrary",
                              "wikidata",
                              "tvmaze",
                              "itunes",
                              "musicbrainz",
                              "rss",
                              "tmdb",
                              "spotify"
                            ]
                          },
                          "entity_type": {
                            "type": "string",
                            "enum": [
                              "work",
                              "edition",
                              "series",
                              "show",
                              "season",
                              "episode",
                              "release-group",
                              "release",
                              "recording",
                              "artist",
                              "album",
                              "track",
                              "book",
                              "movie",
                              "tv",
                              "podcast"
                            ]
                          },
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          },
                          "meta": {
                            "type": "object",
                            "properties": {
                              "created_at": {
                                "type": ["string", "null"]
                              },
                              "updated_at": {
                                "type": ["string", "null"]
                              },
                              "deleted_at": {
                                "type": ["string", "null"]
                              },
                              "legacy_ref": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "table": {
                                        "type": "string"
                                      },
                                      "key": {
                                        "type": ["string", "number"]
                                      },
                                      "row": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": ["table", "key", "row"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "dataset": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "required": ["provider", "entity_type", "id"],
                        "additionalProperties": false
                      },
                      "storage_policy": {
                        "type": "string",
                        "enum": ["remote_only", "cache_allowed"]
                      },
                      "evidence": {
                        "type": "object",
                        "properties": {
                          "source": {
                            "type": "string"
                          },
                          "source_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "observed_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          },
                          "expires_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "terms_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "license": {
                            "type": "string"
                          },
                          "attribution": {
                            "type": "string"
                          },
                          "export_policy": {
                            "type": "string",
                            "enum": ["allow", "attributed", "omit"]
                          },
                          "meta": {
                            "type": "object",
                            "properties": {
                              "created_at": {
                                "type": ["string", "null"]
                              },
                              "updated_at": {
                                "type": ["string", "null"]
                              },
                              "deleted_at": {
                                "type": ["string", "null"]
                              },
                              "legacy_ref": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "table": {
                                        "type": "string"
                                      },
                                      "key": {
                                        "type": ["string", "number"]
                                      },
                                      "row": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": ["table", "key", "row"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "dataset": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "source",
                          "source_url",
                          "observed_at",
                          "expires_at",
                          "terms_url",
                          "license",
                          "attribution",
                          "export_policy"
                        ],
                        "additionalProperties": false
                      },
                      "id": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                      },
                      "meta": {
                        "type": "object",
                        "properties": {
                          "created_at": {
                            "type": ["string", "null"]
                          },
                          "updated_at": {
                            "type": ["string", "null"]
                          },
                          "deleted_at": {
                            "type": ["string", "null"]
                          },
                          "legacy_ref": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "table": {
                                    "type": "string"
                                  },
                                  "key": {
                                    "type": ["string", "number"]
                                  },
                                  "row": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": ["table", "key", "row"],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dataset": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "role",
                      "url",
                      "width",
                      "height",
                      "language",
                      "target",
                      "storage_policy",
                      "evidence",
                      "id"
                    ],
                    "additionalProperties": false
                  }
                },
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                },
                "meta": {
                  "type": "object",
                  "properties": {
                    "created_at": {
                      "type": ["string", "null"]
                    },
                    "updated_at": {
                      "type": ["string", "null"]
                    },
                    "deleted_at": {
                      "type": ["string", "null"]
                    },
                    "legacy_ref": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "table": {
                              "type": "string"
                            },
                            "key": {
                              "type": ["string", "number"]
                            },
                            "row": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": ["table", "key", "row"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataset": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": ["ref", "medium", "title", "year", "position", "sort_number", "url", "id"],
              "additionalProperties": false
            }
          },
          "evidence": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string",
                "format": "uri"
              },
              "observed_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "expires_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "terms_url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "attribution": {
                "type": "string"
              },
              "export_policy": {
                "type": "string",
                "enum": ["allow", "attributed", "omit"]
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "source",
              "source_url",
              "observed_at",
              "expires_at",
              "terms_url",
              "license",
              "attribution",
              "export_policy"
            ],
            "additionalProperties": false
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
          },
          "meta": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": ["string", "null"]
              },
              "updated_at": {
                "type": ["string", "null"]
              },
              "deleted_at": {
                "type": ["string", "null"]
              },
              "legacy_ref": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "table": {
                        "type": "string"
                      },
                      "key": {
                        "type": ["string", "number"]
                      },
                      "row": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["table", "key", "row"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dataset": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "ref",
          "name",
          "relation",
          "position",
          "order",
          "total",
          "ongoing",
          "complete",
          "entries",
          "evidence",
          "id"
        ],
        "additionalProperties": false
      }
    },
    "seasons": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ref": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string",
                "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
              },
              "entity_type": {
                "type": "string",
                "enum": [
                  "work",
                  "edition",
                  "series",
                  "show",
                  "season",
                  "episode",
                  "release-group",
                  "release",
                  "recording",
                  "artist",
                  "album",
                  "track",
                  "book",
                  "movie",
                  "tv",
                  "podcast"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["provider", "entity_type", "id"],
            "additionalProperties": false
          },
          "number": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string"
          },
          "episode_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "air_date": {
            "type": ["string", "null"]
          },
          "artwork": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string",
                  "enum": ["cover", "poster", "backdrop", "episode"]
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "width": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "height": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "language": {
                  "type": ["string", "null"]
                },
                "target": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string",
                      "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
                    },
                    "entity_type": {
                      "type": "string",
                      "enum": [
                        "work",
                        "edition",
                        "series",
                        "show",
                        "season",
                        "episode",
                        "release-group",
                        "release",
                        "recording",
                        "artist",
                        "album",
                        "track",
                        "book",
                        "movie",
                        "tv",
                        "podcast"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "created_at": {
                          "type": ["string", "null"]
                        },
                        "updated_at": {
                          "type": ["string", "null"]
                        },
                        "deleted_at": {
                          "type": ["string", "null"]
                        },
                        "legacy_ref": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "table": {
                                  "type": "string"
                                },
                                "key": {
                                  "type": ["string", "number"]
                                },
                                "row": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": ["table", "key", "row"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "dataset": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "required": ["provider", "entity_type", "id"],
                  "additionalProperties": false
                },
                "storage_policy": {
                  "type": "string",
                  "enum": ["remote_only", "cache_allowed"]
                },
                "evidence": {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string"
                    },
                    "source_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "observed_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "expires_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terms_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "license": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "string"
                    },
                    "export_policy": {
                      "type": "string",
                      "enum": ["allow", "attributed", "omit"]
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "created_at": {
                          "type": ["string", "null"]
                        },
                        "updated_at": {
                          "type": ["string", "null"]
                        },
                        "deleted_at": {
                          "type": ["string", "null"]
                        },
                        "legacy_ref": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "table": {
                                  "type": "string"
                                },
                                "key": {
                                  "type": ["string", "number"]
                                },
                                "row": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": ["table", "key", "row"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "dataset": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "source",
                    "source_url",
                    "observed_at",
                    "expires_at",
                    "terms_url",
                    "license",
                    "attribution",
                    "export_policy"
                  ],
                  "additionalProperties": false
                },
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                },
                "meta": {
                  "type": "object",
                  "properties": {
                    "created_at": {
                      "type": ["string", "null"]
                    },
                    "updated_at": {
                      "type": ["string", "null"]
                    },
                    "deleted_at": {
                      "type": ["string", "null"]
                    },
                    "legacy_ref": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "table": {
                              "type": "string"
                            },
                            "key": {
                              "type": ["string", "number"]
                            },
                            "row": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": ["table", "key", "row"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataset": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": ["role", "url", "width", "height", "language", "target", "storage_policy", "evidence", "id"],
              "additionalProperties": false
            }
          },
          "episodes_complete": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": ["string", "null"]
          },
          "episode_entries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ref": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string",
                      "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
                    },
                    "entity_type": {
                      "type": "string",
                      "enum": [
                        "work",
                        "edition",
                        "series",
                        "show",
                        "season",
                        "episode",
                        "release-group",
                        "release",
                        "recording",
                        "artist",
                        "album",
                        "track",
                        "book",
                        "movie",
                        "tv",
                        "podcast"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "created_at": {
                          "type": ["string", "null"]
                        },
                        "updated_at": {
                          "type": ["string", "null"]
                        },
                        "deleted_at": {
                          "type": ["string", "null"]
                        },
                        "legacy_ref": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "table": {
                                  "type": "string"
                                },
                                "key": {
                                  "type": ["string", "number"]
                                },
                                "row": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": ["table", "key", "row"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "dataset": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "required": ["provider", "entity_type", "id"],
                  "additionalProperties": false
                },
                "number": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "title": {
                  "type": "string"
                },
                "air_date": {
                  "type": ["string", "null"]
                },
                "runtime_seconds": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "url": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uri"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "guid": {
                  "type": "string"
                },
                "season_number": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
                },
                "meta": {
                  "type": "object",
                  "properties": {
                    "created_at": {
                      "type": ["string", "null"]
                    },
                    "updated_at": {
                      "type": ["string", "null"]
                    },
                    "deleted_at": {
                      "type": ["string", "null"]
                    },
                    "legacy_ref": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "table": {
                              "type": "string"
                            },
                            "key": {
                              "type": ["string", "number"]
                            },
                            "row": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": ["table", "key", "row"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataset": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": ["ref", "number", "title", "air_date", "runtime_seconds", "url", "id"],
              "additionalProperties": false
            }
          },
          "evidence": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string"
              },
              "source_url": {
                "type": "string",
                "format": "uri"
              },
              "observed_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "expires_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "terms_url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "attribution": {
                "type": "string"
              },
              "export_policy": {
                "type": "string",
                "enum": ["allow", "attributed", "omit"]
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "source",
              "source_url",
              "observed_at",
              "expires_at",
              "terms_url",
              "license",
              "attribution",
              "export_policy"
            ],
            "additionalProperties": false
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
          },
          "meta": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": ["string", "null"]
              },
              "updated_at": {
                "type": ["string", "null"]
              },
              "deleted_at": {
                "type": ["string", "null"]
              },
              "legacy_ref": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "table": {
                        "type": "string"
                      },
                      "key": {
                        "type": ["string", "number"]
                      },
                      "row": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["table", "key", "row"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dataset": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "required": ["ref", "number", "title", "episode_count", "air_date", "episodes_complete", "evidence", "id"],
        "additionalProperties": false
      }
    },
    "seasons_complete": {
      "type": "boolean"
    },
    "seasons_next_cursor": {
      "type": ["string", "null"]
    },
    "tracklist": {
      "type": "object",
      "properties": {
        "release": {
          "type": "object",
          "properties": {
            "provider": {
              "type": "string",
              "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
            },
            "entity_type": {
              "type": "string",
              "enum": [
                "work",
                "edition",
                "series",
                "show",
                "season",
                "episode",
                "release-group",
                "release",
                "recording",
                "artist",
                "album",
                "track",
                "book",
                "movie",
                "tv",
                "podcast"
              ]
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            },
            "meta": {
              "type": "object",
              "properties": {
                "created_at": {
                  "type": ["string", "null"]
                },
                "updated_at": {
                  "type": ["string", "null"]
                },
                "deleted_at": {
                  "type": ["string", "null"]
                },
                "legacy_ref": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "table": {
                          "type": "string"
                        },
                        "key": {
                          "type": ["string", "number"]
                        },
                        "row": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": ["table", "key", "row"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dataset": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "required": ["provider", "entity_type", "id"],
          "additionalProperties": false
        },
        "complete": {
          "type": "boolean"
        },
        "next_cursor": {
          "type": ["string", "null"]
        },
        "tracks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ref": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
                  },
                  "entity_type": {
                    "type": "string",
                    "enum": [
                      "work",
                      "edition",
                      "series",
                      "show",
                      "season",
                      "episode",
                      "release-group",
                      "release",
                      "recording",
                      "artist",
                      "album",
                      "track",
                      "book",
                      "movie",
                      "tv",
                      "podcast"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "meta": {
                    "type": "object",
                    "properties": {
                      "created_at": {
                        "type": ["string", "null"]
                      },
                      "updated_at": {
                        "type": ["string", "null"]
                      },
                      "deleted_at": {
                        "type": ["string", "null"]
                      },
                      "legacy_ref": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "table": {
                                "type": "string"
                              },
                              "key": {
                                "type": ["string", "number"]
                              },
                              "row": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["table", "key", "row"],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dataset": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": ["provider", "entity_type", "id"],
                "additionalProperties": false
              },
              "recording": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
                  },
                  "entity_type": {
                    "type": "string",
                    "enum": [
                      "work",
                      "edition",
                      "series",
                      "show",
                      "season",
                      "episode",
                      "release-group",
                      "release",
                      "recording",
                      "artist",
                      "album",
                      "track",
                      "book",
                      "movie",
                      "tv",
                      "podcast"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "meta": {
                    "type": "object",
                    "properties": {
                      "created_at": {
                        "type": ["string", "null"]
                      },
                      "updated_at": {
                        "type": ["string", "null"]
                      },
                      "deleted_at": {
                        "type": ["string", "null"]
                      },
                      "legacy_ref": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "table": {
                                "type": "string"
                              },
                              "key": {
                                "type": ["string", "number"]
                              },
                              "row": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["table", "key", "row"],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dataset": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": ["provider", "entity_type", "id"],
                "additionalProperties": false
              },
              "disc": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "number": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "title": {
                "type": "string"
              },
              "runtime_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "url": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["ref", "disc", "number", "title", "runtime_seconds", "url", "id"],
            "additionalProperties": false
          }
        },
        "evidence": {
          "type": "object",
          "properties": {
            "source": {
              "type": "string"
            },
            "source_url": {
              "type": "string",
              "format": "uri"
            },
            "observed_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "expires_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "terms_url": {
              "type": "string",
              "format": "uri"
            },
            "license": {
              "type": "string"
            },
            "attribution": {
              "type": "string"
            },
            "export_policy": {
              "type": "string",
              "enum": ["allow", "attributed", "omit"]
            },
            "meta": {
              "type": "object",
              "properties": {
                "created_at": {
                  "type": ["string", "null"]
                },
                "updated_at": {
                  "type": ["string", "null"]
                },
                "deleted_at": {
                  "type": ["string", "null"]
                },
                "legacy_ref": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "table": {
                          "type": "string"
                        },
                        "key": {
                          "type": ["string", "number"]
                        },
                        "row": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": ["table", "key", "row"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dataset": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "source",
            "source_url",
            "observed_at",
            "expires_at",
            "terms_url",
            "license",
            "attribution",
            "export_policy"
          ],
          "additionalProperties": false
        },
        "meta": {
          "type": "object",
          "properties": {
            "created_at": {
              "type": ["string", "null"]
            },
            "updated_at": {
              "type": ["string", "null"]
            },
            "deleted_at": {
              "type": ["string", "null"]
            },
            "legacy_ref": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "table": {
                      "type": "string"
                    },
                    "key": {
                      "type": ["string", "number"]
                    },
                    "row": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": ["table", "key", "row"],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "dataset": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      },
      "required": ["release", "complete", "tracks", "evidence"],
      "additionalProperties": false
    },
    "podcast_episodes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ref": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string",
                "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
              },
              "entity_type": {
                "type": "string",
                "enum": [
                  "work",
                  "edition",
                  "series",
                  "show",
                  "season",
                  "episode",
                  "release-group",
                  "release",
                  "recording",
                  "artist",
                  "album",
                  "track",
                  "book",
                  "movie",
                  "tv",
                  "podcast"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "meta": {
                "type": "object",
                "properties": {
                  "created_at": {
                    "type": ["string", "null"]
                  },
                  "updated_at": {
                    "type": ["string", "null"]
                  },
                  "deleted_at": {
                    "type": ["string", "null"]
                  },
                  "legacy_ref": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "table": {
                            "type": "string"
                          },
                          "key": {
                            "type": ["string", "number"]
                          },
                          "row": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["table", "key", "row"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataset": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": ["provider", "entity_type", "id"],
            "additionalProperties": false
          },
          "number": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string"
          },
          "air_date": {
            "type": ["string", "null"]
          },
          "runtime_seconds": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "guid": {
            "type": "string"
          },
          "season_number": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
          },
          "meta": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": ["string", "null"]
              },
              "updated_at": {
                "type": ["string", "null"]
              },
              "deleted_at": {
                "type": ["string", "null"]
              },
              "legacy_ref": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "table": {
                        "type": "string"
                      },
                      "key": {
                        "type": ["string", "number"]
                      },
                      "row": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["table", "key", "row"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dataset": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "required": ["ref", "number", "title", "air_date", "runtime_seconds", "url", "id"],
        "additionalProperties": false
      }
    },
    "podcast_episodes_complete": {
      "type": "boolean"
    },
    "podcast_next_cursor": {
      "type": ["string", "null"]
    },
    "metadata_checked_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "metadata_expires_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 5000
        },
        {
          "type": "null"
        }
      ]
    },
    "chosen_match": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "provider": {
              "type": "string",
              "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
            },
            "entity_type": {
              "type": "string",
              "enum": [
                "work",
                "edition",
                "series",
                "show",
                "season",
                "episode",
                "release-group",
                "release",
                "recording",
                "artist",
                "album",
                "track",
                "book",
                "movie",
                "tv",
                "podcast"
              ]
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            },
            "meta": {
              "type": "object",
              "properties": {
                "created_at": {
                  "type": ["string", "null"]
                },
                "updated_at": {
                  "type": ["string", "null"]
                },
                "deleted_at": {
                  "type": ["string", "null"]
                },
                "legacy_ref": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "table": {
                          "type": "string"
                        },
                        "key": {
                          "type": ["string", "number"]
                        },
                        "row": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": ["table", "key", "row"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dataset": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "required": ["provider", "entity_type", "id"],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "podcast_unit": {
      "type": "string",
      "enum": ["show", "episode"]
    },
    "episode_guid": {
      "type": "string"
    },
    "show_ref": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string",
          "enum": ["openlibrary", "wikidata", "tvmaze", "itunes", "musicbrainz", "rss", "tmdb", "spotify"]
        },
        "entity_type": {
          "type": "string",
          "enum": [
            "work",
            "edition",
            "series",
            "show",
            "season",
            "episode",
            "release-group",
            "release",
            "recording",
            "artist",
            "album",
            "track",
            "book",
            "movie",
            "tv",
            "podcast"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        "meta": {
          "type": "object",
          "properties": {
            "created_at": {
              "type": ["string", "null"]
            },
            "updated_at": {
              "type": ["string", "null"]
            },
            "deleted_at": {
              "type": ["string", "null"]
            },
            "legacy_ref": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "table": {
                      "type": "string"
                    },
                    "key": {
                      "type": ["string", "number"]
                    },
                    "row": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": ["table", "key", "row"],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "dataset": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      },
      "required": ["provider", "entity_type", "id"],
      "additionalProperties": false
    },
    "season_number": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "episode_number": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "meta": {
      "type": "object",
      "properties": {
        "created_at": {
          "type": ["string", "null"]
        },
        "updated_at": {
          "type": ["string", "null"]
        },
        "deleted_at": {
          "type": ["string", "null"]
        },
        "legacy_ref": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "table": {
                  "type": "string"
                },
                "key": {
                  "type": ["string", "number"]
                },
                "row": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": ["table", "key", "row"],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "dataset": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "medium",
    "title",
    "creators",
    "year",
    "external_ids",
    "genres",
    "runtime_seconds",
    "pages",
    "episodes",
    "links",
    "recommendation",
    "quote",
    "list_context",
    "music_unit",
    "platforms",
    "edition",
    "language",
    "resolution"
  ],
  "additionalProperties": false,
  "$id": "https://sendtopigeon.com/schemas/media@1.schema.json",
  "title": "Pigeon Open Data: media@1",
  "$comment": "Apache-2.0. Structural schema; use Zod/parseRecord for semantic invariants. This published schema URL is immutable.",
  "examples": [
    {
      "medium": "movie",
      "title": "demo",
      "creators": [],
      "year": 1000,
      "external_ids": {
        "openlibrary": null,
        "isbn": null,
        "musicbrainz": null,
        "tmdb": null,
        "imdb": null,
        "podcastindex": null,
        "feed_url": "https://example.invalid/item",
        "igdb": null
      },
      "genres": [],
      "runtime_seconds": 0,
      "pages": 1,
      "episodes": 1,
      "links": [],
      "recommendation": null,
      "quote": null,
      "list_context": {
        "label": null,
        "position": 1,
        "total": 1
      },
      "music_unit": "recording",
      "platforms": [],
      "edition": null,
      "language": null,
      "resolution": {
        "status": "matched",
        "confidence": 0,
        "attribution": [],
        "candidates": []
      }
    }
  ]
}
