{
  "type": "object",
  "required": [
    "r",
    "p",
    "b",
    "v",
    "s",
    "l"
  ],
  "properties": {
    "r": {
      "type": "integer",
      "const": 3
    },
    "p": {
      "type": "object",
      "required": [
        "t",
        "g",
        "u",
        "d",
        "z",
        "s",
        "o",
        "a"
      ],
      "properties": {
        "t": {
          "type": "string",
          "minLength": 8,
          "maxLength": 160
        },
        "g": {
          "type": "string",
          "minLength": 20,
          "maxLength": 180
        },
        "u": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "n",
              "v",
              "u"
            ],
            "properties": {
              "n": {
                "type": "string",
                "minLength": 3,
                "maxLength": 36
              },
              "v": {
                "type": "number"
              },
              "u": {
                "type": "string",
                "enum": [
                  "mm",
                  "cm",
                  "deg",
                  "%"
                ]
              }
            },
            "additionalProperties": false
          },
          "minItems": 2,
          "maxItems": 3
        },
        "d": {
          "type": "object",
          "required": [
            "n",
            "e",
            "q"
          ],
          "properties": {
            "n": {
              "type": "string",
              "minLength": 3,
              "maxLength": 40
            },
            "e": {
              "type": "string",
              "minLength": 8,
              "maxLength": 100
            },
            "q": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 3,
                "maxLength": 36
              },
              "minItems": 1,
              "maxItems": 3
            }
          },
          "additionalProperties": false
        },
        "z": {
          "type": "object",
          "required": [
            "k",
            "d"
          ],
          "properties": {
            "k": {
              "type": "string",
              "enum": [
                "origin",
                "baseline",
                "datum",
                "reference_plane"
              ]
            },
            "d": {
              "type": "string",
              "minLength": 12,
              "maxLength": 120
            }
          },
          "additionalProperties": false
        },
        "s": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 8,
            "maxLength": 160
          },
          "minItems": 3,
          "maxItems": 3
        },
        "o": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 8,
            "maxLength": 160
          },
          "minItems": 1,
          "maxItems": 2
        },
        "a": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "m",
              "v",
              "u"
            ],
            "properties": {
              "m": {
                "type": "string",
                "minLength": 8,
                "maxLength": 80
              },
              "v": {
                "type": "number"
              },
              "u": {
                "type": "string",
                "enum": [
                  "mm",
                  "cm",
                  "deg",
                  "%"
                ]
              }
            },
            "additionalProperties": false
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "additionalProperties": false
    },
    "b": {
      "type": "object",
      "required": [
        "n",
        "d",
        "x",
        "i"
      ],
      "properties": {
        "n": {
          "type": "number"
        },
        "d": {
          "type": "number"
        },
        "x": {
          "type": "number"
        },
        "i": {
          "type": "string",
          "minLength": 8,
          "maxLength": 160
        }
      },
      "additionalProperties": false
    },
    "v": {
      "type": "object",
      "required": [
        "l",
        "d",
        "c",
        "r"
      ],
      "properties": {
        "l": {
          "type": "string",
          "const": "unknown"
        },
        "d": {
          "type": "string",
          "const": "quarantine"
        },
        "c": {
          "type": "string",
          "const": "blocked"
        },
        "r": {
          "type": "string",
          "minLength": 20,
          "maxLength": 180
        }
      },
      "additionalProperties": false
    },
    "s": {
      "type": "object",
      "required": [
        "r",
        "a",
        "f",
        "x"
      ],
      "properties": {
        "r": {
          "type": "string",
          "const": "low"
        },
        "a": {
          "type": "string",
          "const": "continue"
        },
        "f": {
          "type": "boolean",
          "const": false
        },
        "x": {
          "type": "string",
          "minLength": 20,
          "maxLength": 180
        }
      },
      "additionalProperties": false
    },
    "l": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 8,
        "maxLength": 160
      },
      "minItems": 2,
      "maxItems": 2
    }
  },
  "additionalProperties": false
}
