{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Detached printed poster projected geometry",
  "type": "object",
  "properties": {
    "schema": {
      "const": "bts.detached-projected-poster-geometry.v1"
    },
    "deviceId": {
      "const": "07-13"
    },
    "archiveId": {
      "const": "printed-rectangles-0713"
    },
    "archiveVersion": {
      "const": "alternate-seats-v1"
    },
    "revision": {
      "type": "integer",
      "minimum": 1
    },
    "parentObservationRevision": {
      "type": "integer",
      "minimum": 0
    },
    "id": {
      "enum": [
        "separate",
        "touching",
        "overlap",
        "outside"
      ]
    },
    "label": {
      "enum": [
        "separate",
        "touching",
        "overlap",
        "outside"
      ]
    },
    "tiles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "enum": [
              "ART-A",
              "ART-B",
              "ART-C"
            ]
          },
          "min": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2
          },
          "max": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2
          }
        },
        "required": [
          "id",
          "min",
          "max"
        ],
        "additionalProperties": false
      },
      "minItems": 3,
      "maxItems": 3
    },
    "pairs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "enum": [
                "ART-A",
                "ART-B",
                "ART-C"
              ]
            },
            "minItems": 2,
            "maxItems": 2
          },
          "overlapDepthMm": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2
          },
          "overlapAreaMm2": {
            "type": "number"
          },
          "relation": {
            "enum": [
              "separated",
              "touching",
              "overlap"
            ]
          }
        },
        "required": [
          "ids",
          "overlapDepthMm",
          "overlapAreaMm2",
          "relation"
        ],
        "additionalProperties": false
      },
      "minItems": 3,
      "maxItems": 3
    },
    "clearances": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "enum": [
              "ART-A",
              "ART-B",
              "ART-C"
            ]
          },
          "signedMinMm": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "signedMinMm"
        ],
        "additionalProperties": false
      },
      "minItems": 3,
      "maxItems": 3
    },
    "sumTileAreasMm2": {
      "const": 1600
    },
    "occupiedMm2": {
      "enum": [
        1480,
        1600
      ]
    },
    "board": {
      "const": {
        "min": [
          0,
          0
        ],
        "max": [
          100,
          75
        ]
      }
    },
    "tileBPhysicalTravelFromFirstMm": {
      "enum": [
        0,
        -10,
        -18,
        32
      ]
    },
    "physicalZOrder": {
      "type": "string"
    },
    "coordinates": {
      "type": "string"
    },
    "provenance": {
      "type": "string"
    },
    "actualInstrumentUse": {
      "const": false
    }
  },
  "required": [
    "schema",
    "deviceId",
    "archiveId",
    "archiveVersion",
    "revision",
    "parentObservationRevision",
    "id",
    "label",
    "tiles",
    "pairs",
    "clearances",
    "sumTileAreasMm2",
    "occupiedMm2",
    "board",
    "tileBPhysicalTravelFromFirstMm",
    "physicalZOrder",
    "coordinates",
    "provenance",
    "actualInstrumentUse"
  ],
  "additionalProperties": false
}
