{
  "$defs": {
    "DeformKey": {
      "additionalProperties": false,
      "description": "A value of a parameter and the shapes the meshes take there.",
      "properties": {
        "at": {
          "format": "float",
          "type": "number"
        },
        "shapes": {
          "items": {
            "$ref": "#/$defs/DeformShape"
          },
          "type": "array"
        }
      },
      "required": [
        "at"
      ],
      "type": "object"
    },
    "DeformParameter": {
      "additionalProperties": false,
      "description": "A number that deforms meshes.",
      "properties": {
        "default": {
          "description": "The value it rests at, where nothing is deformed unless a key is there.",
          "format": "float",
          "type": "number"
        },
        "id": {
          "$ref": "#/$defs/Id"
        },
        "keys": {
          "description": "In the order of their values, each once, between `min` and `max`.",
          "items": {
            "$ref": "#/$defs/DeformKey"
          },
          "type": "array"
        },
        "max": {
          "format": "float",
          "type": "number"
        },
        "min": {
          "description": "The smallest value and the largest.",
          "format": "float",
          "type": "number"
        },
        "name": {
          "description": "What a game and the graph of states call it; each parameter has its own.",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "min",
        "max",
        "default"
      ],
      "type": "object"
    },
    "DeformShape": {
      "additionalProperties": false,
      "description": "The shape of one mesh at a key: an offset for each of its vertices.",
      "properties": {
        "mesh": {
          "$ref": "#/$defs/Id",
          "description": "The mesh, by the identifier of its entry in a skin of `rig.json`."
        },
        "offsets": {
          "description": "An offset `[x, y]` for each vertex, in the order of the vertices of the mesh, in the\nspace of each bone that carries it, as the keys of the vertices of an animation.",
          "items": {
            "items": {
              "format": "float",
              "type": "number"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          },
          "type": "array"
        },
        "slot": {
          "$ref": "#/$defs/Id",
          "description": "The slot, by the identifier `rig.json` gives it."
        }
      },
      "required": [
        "slot",
        "mesh",
        "offsets"
      ],
      "type": "object"
    },
    "DeformVersion": {
      "description": "The versions of the format of parameters.",
      "oneOf": [
        {
          "const": "0.1",
          "description": "The first: parameters, their keys, the shapes of meshes at each.",
          "type": "string"
        }
      ]
    },
    "Id": {
      "description": "An identifier that never changes: a ULID, 26 letters and digits.",
      "pattern": "^[0-7][0-9A-HJKMNP-TV-Z]{25}$",
      "type": "string"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "`deform.json`.",
  "properties": {
    "format_version": {
      "$ref": "#/$defs/DeformVersion"
    },
    "parameters": {
      "items": {
        "$ref": "#/$defs/DeformParameter"
      },
      "type": "array"
    }
  },
  "required": [
    "format_version",
    "parameters"
  ],
  "title": "pantin deform, format 0.1",
  "type": "object"
}
