Raw schema
{
"type": "object",
"properties": {
"replacement_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"facts": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 100
},
"description": {
"type": "string",
"maxLength": 3000
},
"audience": {
"type": "string",
"maxLength": 1000
},
"problems": {
"type": "array",
"maxItems": 20,
"items": {
"type": "string",
"maxLength": 500
}
},
"exclusions": {
"type": "array",
"maxItems": 20,
"items": {
"type": "string",
"maxLength": 500
}
}
},
"required": [
"description",
"audience",
"problems",
"exclusions"
],
"additionalProperties": false
},
"proposal_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"approved": {
"type": "boolean",
"const": true
}
},
"additionalProperties": false,
"oneOf": [
{
"type": "object",
"properties": {
"replacement_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"facts": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 100
},
"description": {
"type": "string",
"maxLength": 3000
},
"audience": {
"type": "string",
"maxLength": 1000
},
"problems": {
"type": "array",
"maxItems": 20,
"items": {
"type": "string",
"maxLength": 500
}
},
"exclusions": {
"type": "array",
"maxItems": 20,
"items": {
"type": "string",
"maxLength": 500
}
}
},
"required": [
"description",
"audience",
"problems",
"exclusions"
],
"additionalProperties": false
}
},
"required": [
"replacement_id",
"facts"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"proposal_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"approved": {
"type": "boolean",
"const": true
}
},
"required": [
"proposal_id",
"approved"
],
"additionalProperties": false
}
]
}