{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://aniworks.net/schemas/mapping-catalog-v1.json",
  "title": "Mapping standard: catalog, version 1",
  "description": "The series a site carries, one file per media. See https://aniworks.net/docs/mapping",
  "type": "object",
  "required": ["version", "series"],
  "properties": {
    "version": { "const": 1 },
    "series": {
      "type": "array",
      "maxItems": 100000,
      "items": {
        "type": "object",
        "required": ["id", "aniworks"],
        "properties": {
          "id": {
            "oneOf": [
              { "type": "string", "minLength": 1, "maxLength": 256 },
              { "type": "integer", "minimum": 0 }
            ]
          },
          "aniworks": { "type": "integer", "minimum": 1 },
          "title": { "type": "string", "maxLength": 512 },
          "available": { "type": "integer", "minimum": 0 }
        }
      }
    }
  }
}
