JSON-schema Kravkombination
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schemas.infopack.io/100gruppen/rexs.requirement-combination.1.schema.json",
"title": "Requirement Combination",
"description": "A schema representing a requirement combination.",
"type": "object",
"required": ["first requirement", "logical operator", "second requirement"],
"properties": {
"first requirement": {
"description": "A reference to the 'identifier' property of another schema that identifies the first requirement.",
"$ref": "http://schemas.infopack.io/100gruppen/rexs.reference-designation.1.schema.json#/properties/Identifier"
},
"logical operator": {
"description": "The logical operator to use to combine the requirements.",
"type": "string",
"enum": [
"and",
"or"
]
},
"second requirement": {
"description": "A reference to the 'identifier' property of another schema that identifies the second requirement.",
"$ref": "http://schemas.infopack.io/100gruppen/rexs.reference-designation.1.schema.json#/properties/Identifier"
}
},
"additionalProperties": false
}