{
  "$defs": {
    "AtlasPage": {
      "additionalProperties": false,
      "description": "One image of the atlas, which holds several.",
      "properties": {
        "height": {
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "image": {
          "description": "The PNG file of the page, relative to the atlas file.",
          "type": "string"
        },
        "regions": {
          "description": "The images on this page, each one whole on it and none over another.",
          "items": {
            "$ref": "#/$defs/AtlasRegion"
          },
          "type": "array"
        },
        "width": {
          "description": "The size of that image, in pixels.",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "image",
        "width",
        "height",
        "regions"
      ],
      "type": "object"
    },
    "AtlasRegion": {
      "additionalProperties": false,
      "description": "Where one image is on its page.",
      "properties": {
        "height": {
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "description": "The image, as the skeleton names it: in a project, the identifier its attachments give\nit, so that moving or renaming its file leaves the atlas good; in a file of the format\nbefore, which has no identifiers, its `path`.",
          "type": "string"
        },
        "width": {
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "x": {
          "description": "The left of the image on the page, in pixels from its left.",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "y": {
          "description": "The top of the image on the page, in pixels from its top.",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "name",
        "x",
        "y",
        "width",
        "height"
      ],
      "type": "object"
    },
    "AtlasVersion": {
      "description": "The versions of the atlas format.",
      "oneOf": [
        {
          "const": "0.3",
          "description": "One page or more, each image named as the skeleton names it: by its identifier in a\nproject.",
          "type": "string"
        }
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "A pantin atlas: images packed into one page or more.",
  "properties": {
    "format_version": {
      "$ref": "#/$defs/AtlasVersion",
      "description": "The version of the atlas format."
    },
    "pages": {
      "description": "The pages, each with its own image. An image is on one page only.",
      "items": {
        "$ref": "#/$defs/AtlasPage"
      },
      "type": "array"
    }
  },
  "required": [
    "format_version",
    "pages"
  ],
  "title": "pantin atlas, format 0.3",
  "type": "object"
}
