{
  "$defs": {
    "AtlasRegion": {
      "additionalProperties": false,
      "description": "Where one image is in the atlas.",
      "properties": {
        "height": {
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "description": "The name of the image: the `path` that the attachments of a skeleton give it.",
          "type": "string"
        },
        "width": {
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "x": {
          "description": "The left of the image in the atlas, in pixels from its left.",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "y": {
          "description": "The top of the image in the atlas, 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.",
      "enum": [
        "0.1"
      ],
      "type": "string"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "A pantin atlas: one image that holds several.",
  "properties": {
    "format_version": {
      "$ref": "#/$defs/AtlasVersion",
      "description": "The version of the atlas format."
    },
    "height": {
      "format": "uint32",
      "minimum": 0,
      "type": "integer"
    },
    "image": {
      "description": "The PNG file that holds the images, relative to this file.",
      "type": "string"
    },
    "regions": {
      "description": "The images, each one whole in the atlas 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": [
    "format_version",
    "image",
    "width",
    "height",
    "regions"
  ],
  "title": "pantin atlas, format 0.1",
  "type": "object"
}
