{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Array_of_ValidationSchema",
"type": "array",
"items": {
"$ref": "#/definitions/ValidationSchema"
},
"definitions": {
"Level": {
"type": "string",
"enum": [
"project",
"assembly",
"product",
"impactData"
]
},
"ValidationRule": {
"type": "object",
"properties": {
"equal": {
"type": [
"string",
"null"
]
},
"greater": {
"type": [
"number",
"null"
],
"format": "double"
},
"includes": {
"type": [
"string",
"null"
]
},
"less": {
"type": [
"number",
"null"
],
"format": "double"
},
"oneOf": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"range": {
"type": [
"array",
"null"
],
"items": {
"type": "number",
"format": "double"
},
"maxItems": 2,
"minItems": 2
},
"required": {
"type": [
"boolean",
"null"
]
}
}
},
"ValidationSchema": {
"type": "object",
"required": [
"field",
"level",
"rule"
],
"properties": {
"field": {
"type": "string"
},
"level": {
"$ref": "#/definitions/Level"
},
"rule": {
"$ref": "#/definitions/ValidationRule"
}
}
}
}
}