{
  "$ref": "#/definitions/schemaObjectRoot",
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "definitions": {
    "defaultPrimitiveCondition": {
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "integer"
              }
            }
          },
          "then": {
            "properties": {
              "default": {
                "type": "integer"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "number"
              }
            }
          },
          "then": {
            "properties": {
              "default": {
                "type": "number"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "string"
              }
            }
          },
          "then": {
            "properties": {
              "default": {
                "type": "string"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "boolean"
              }
            }
          },
          "then": {
            "properties": {
              "default": {
                "type": "boolean"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "null"
              }
            }
          },
          "then": {
            "properties": {
              "default": {
                "type": "null"
              }
            }
          }
        }
      ]
    },
    "nonNegativeInteger": {
      "minimum": 0,
      "type": "integer"
    },
    "nonNegativeIntegerDefault0": {
      "allOf": [
        {
          "$ref": "#/definitions/nonNegativeInteger"
        },
        {
          "default": 0
        }
      ]
    },
    "schemaAllOf": {
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "object"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "$ref": "#/definitions/schemaObject"
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "enum": [
                  "string",
                  "integer",
                  "boolean",
                  "number"
                ]
              }
            }
          },
          "then": {
            "$ref": "#/definitions/schemaPrimitive"
          }
        },
        {
          "if": {
            "properties": {
              "items": {
                "type": "array"
              },
              "type": {
                "const": "array"
              }
            },
            "required": [
              "type",
              "items"
            ]
          },
          "then": {
            "$ref": "#/definitions/schemaArrayMultiType"
          }
        },
        {
          "if": {
            "properties": {
              "items": {
                "type": "object"
              },
              "type": {
                "const": "array"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "anyOf": [
              {
                "$ref": "#/definitions/schemaArray"
              }
            ]
          }
        }
      ]
    },
    "schemaArray": {
      "additionalProperties": false,
      "properties": {
        "$comment": {
          "type": "string"
        },
        "default": {
          "type": "array"
        },
        "description": {
          "type": "string"
        },
        "enum": {
          "items": true,
          "minItems": 1,
          "type": "array",
          "uniqueItems": true
        },
        "items": {
          "$ref": "#/definitions/schemaAllOf"
        },
        "maxItems": {
          "$ref": "#/definitions/nonNegativeInteger"
        },
        "minItems": {
          "$ref": "#/definitions/nonNegativeIntegerDefault0"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "const": "array"
        },
        "uniqueItems": {
          "default": false,
          "type": "boolean"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "schemaArrayMultiType": {
      "additionalProperties": false,
      "properties": {
        "$comment": {
          "type": "string"
        },
        "additionalItems": {
          "const": false
        },
        "default": {
          "type": "array"
        },
        "description": {
          "type": "string"
        },
        "enum": {
          "items": true,
          "minItems": 1,
          "type": "array",
          "uniqueItems": true
        },
        "items": {
          "items": {
            "$ref": "#/definitions/schemaAllOf"
          },
          "type": "array"
        },
        "maxItems": {
          "$ref": "#/definitions/nonNegativeInteger"
        },
        "minItems": {
          "$ref": "#/definitions/nonNegativeIntegerDefault0"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "const": "array"
        },
        "uniqueItems": {
          "default": false,
          "type": "boolean"
        }
      },
      "required": [
        "type",
        "additionalItems"
      ],
      "type": "object"
    },
    "schemaObject": {
      "additionalProperties": false,
      "properties": {
        "$comment": {
          "type": "string"
        },
        "additionalProperties": {
          "type": "boolean"
        },
        "default": {
          "type": "object"
        },
        "description": {
          "type": "string"
        },
        "enum": {
          "items": true,
          "minItems": 1,
          "type": "array",
          "uniqueItems": true
        },
        "format": {
          "type": "string"
        },
        "maxProperties": {
          "$ref": "#/definitions/nonNegativeInteger"
        },
        "minProperties": {
          "$ref": "#/definitions/nonNegativeIntegerDefault0"
        },
        "properties": {
          "additionalProperties": {
            "$ref": "#/definitions/schemaAllOf"
          },
          "type": "object"
        },
        "required": {
          "type": "array"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "const": "object"
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "schemaObjectRoot": {
      "additionalProperties": false,
      "properties": {
        "$comment": {
          "type": "string"
        },
        "$schema": {
          "format": "uri",
          "not": {
            "const": "https://json-schema.org/draft/2020-12/schema"
          },
          "type": "string"
        },
        "additionalProperties": {
          "type": "boolean"
        },
        "description": {
          "type": "string"
        },
        "enum": {
          "items": true,
          "minItems": 1,
          "type": "array",
          "uniqueItems": true
        },
        "format": {
          "type": "string"
        },
        "maxProperties": {
          "$ref": "#/definitions/nonNegativeInteger"
        },
        "minProperties": {
          "$ref": "#/definitions/nonNegativeIntegerDefault0"
        },
        "properties": {
          "additionalProperties": {
            "$ref": "#/definitions/schemaAllOf"
          },
          "type": "object"
        },
        "required": {
          "type": "array"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "const": "object"
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "schemaPrimitive": {
      "additionalProperties": true,
      "allOf": [
        {
          "$ref": "#/definitions/defaultPrimitiveCondition"
        }
      ],
      "properties": {
        "enum": {
          "items": true,
          "minItems": 1,
          "type": "array",
          "uniqueItems": true
        },
        "type": {
          "enum": [
            "number",
            "integer",
            "string",
            "boolean",
            "null"
          ]
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "version": "2023-09-01"
}