{
  "type": "object",
  "properties": {
    "schema_version": {
      "const": 1
    },
    "module_id": {
      "const": "ICHL-015"
    },
    "spacing_in": {
      "enum": [
        16,
        24
      ]
    },
    "decisions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200
          },
          "reviewer": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200
          },
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$"
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200
          }
        },
        "required": [
          "source",
          "reviewer",
          "id",
          "reason"
        ],
        "additionalProperties": false
      },
      "maxItems": 64
    },
    "fastening": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "object",
          "properties": {
            "source": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1200
            },
            "reviewer": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1200
            },
            "hardware_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1200,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$"
            },
            "per_joint": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "installation": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1200
            },
            "positions_in": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000
                },
                "maxItems": 2,
                "minItems": 2
              },
              "maxItems": 100
            }
          },
          "required": [
            "source",
            "reviewer",
            "hardware_id",
            "per_joint"
          ],
          "additionalProperties": false
        }
      ]
    },
    "plate_fastening": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "object",
          "properties": {
            "source": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1200
            },
            "reviewer": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1200
            },
            "hardware_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1200,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$"
            },
            "per_joint": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "installation": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1200
            },
            "positions_in": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000
                },
                "maxItems": 2,
                "minItems": 2
              },
              "maxItems": 100
            }
          },
          "required": [
            "source",
            "reviewer",
            "hardware_id",
            "per_joint"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "required": [
    "schema_version",
    "module_id",
    "spacing_in",
    "decisions",
    "fastening",
    "plate_fastening"
  ],
  "additionalProperties": false,
  "title": "Semantics and Design Rationale",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
