{
  "$id": "http://plexanisync.github.com/mapping.json",
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "additionalProperties": false,
  "properties": {
    "entries": {
      "default": [],
      "items": {
        "additionalProperties": false,
        "properties": {
          "guid": {
            "examples": [
              "plex://show/5d9c0845ffd9ef001e990bb2"
            ],
            "format": "uri",
            "pattern": "^plex://(show|movie)/[a-f0-9]{24}$",
            "type": "string"
          },
          "seasons": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "anilist-id": {
                  "minimum": 1,
                  "type": "integer"
                },
                "season": {
                  "minimum": 1,
                  "type": "integer"
                },
                "start": {
                  "type": "integer"
                }
              },
              "required": [
                "season",
                "anilist-id"
              ],
              "type": "object"
            },
            "minItems": 1,
            "type": "array"
          },
          "synonyms": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "examples": [
              "The Rising of the Shield Hero",
              "Re:ZERO -Starting Life in Another World-",
              "Code Geass: Lelouch of the Rebellion",
              "Gintama",
              "Shaman King (2021)"
            ],
            "type": "string"
          }
        },
        "required": [
          "title",
          "seasons"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "remote-urls": {
      "default": [],
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "title": "PlexAniSync Mapping Schema",
  "type": "object"
}