{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apiacre-com/json-schema/apiacre-com-pixel-reservation-request-schema.json",
  "title": "PixelReservationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apiacre-com-pixel-acre-api-openapi.yml#/components/schemas/PixelReservationRequest",
  "properties": {
    "pixels": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/PixelDraft"
          },
          "type": "array",
          "maxItems": 10000,
          "minItems": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Pixels",
      "description": "Explicit coordinates; every pixel may have its own colour, public note, and HTTPS URL."
    },
    "blocks": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/PixelBlock"
          },
          "type": "array",
          "maxItems": 1000,
          "minItems": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Blocks",
      "description": "Rectangular shortcuts; each block may have a different colour, public note, and HTTPS URL. Blocks are expanded atomically and may not overlap."
    },
    "rules_version": {
      "type": "string",
      "maxLength": 32,
      "minLength": 10,
      "title": "Rules Version"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "rules_version"
  ],
  "$defs": {
    "PixelBlock": {
      "properties": {
        "x": {
          "type": "integer",
          "exclusiveMaximum": 1250.0,
          "minimum": 0.0,
          "title": "X"
        },
        "y": {
          "type": "integer",
          "exclusiveMaximum": 800.0,
          "minimum": 0.0,
          "title": "Y"
        },
        "color": {
          "type": "string",
          "maxLength": 7,
          "minLength": 7,
          "title": "Color"
        },
        "note": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 280
            },
            {
              "type": "null"
            }
          ],
          "title": "Note"
        },
        "url": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 512
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "width": {
          "type": "integer",
          "maximum": 1250.0,
          "minimum": 1.0,
          "title": "Width"
        },
        "height": {
          "type": "integer",
          "maximum": 800.0,
          "minimum": 1.0,
          "title": "Height"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "x",
        "y",
        "color",
        "width",
        "height"
      ],
      "title": "PixelBlock",
      "description": "A rectangular reservation shortcut with one colour, note, and destination."
    },
    "PixelDraft": {
      "properties": {
        "x": {
          "type": "integer",
          "exclusiveMaximum": 1250.0,
          "minimum": 0.0,
          "title": "X"
        },
        "y": {
          "type": "integer",
          "exclusiveMaximum": 800.0,
          "minimum": 0.0,
          "title": "Y"
        },
        "color": {
          "type": "string",
          "maxLength": 7,
          "minLength": 7,
          "title": "Color"
        },
        "note": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 280
            },
            {
              "type": "null"
            }
          ],
          "title": "Note"
        },
        "url": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 512
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "x",
        "y",
        "color"
      ],
      "title": "PixelDraft"
    }
  }
}