JSON-schema Acceptanskriterium
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schemas.infopack.io/100gruppen/rexs.acceptance-criterion.1.schema.json",
"title": "Acceptance Criterion",
"description": "A schema representing an acceptance criterion, which can be defined in multiple ways such as free text, checklist, checklist with value points, object property, or requirement combination.",
"type": "object",
"required": ["metadata", "definitionType", "definition"],
"properties": {
"metadata": {
"description": "A reference to the metadata schema file, which is mandatory.",
"$ref": "http://schemas.infopack.io/100gruppen/rexs.metadata.1.schema.json"
},
"definitionType": {
"description": "The type of definition for this acceptance criterion.",
"type": "string",
"enum": [
"Free Text",
"Checklist",
"Checklist with value points",
"Object property",
"Requirement combination"
]
},
"definition": {},
"value_points": {
"description": "The value points for this acceptance criterion.",
"type": "integer",
"minimum": 0
},
"valueWeight": {
"description": "The value weight for this acceptance criterion.",
"type": "integer",
"minimum": 0
}
},
"dependencies": {
"definition": {
"description": "The definition of this acceptance criterion.",
"oneOf": [{
"description": "The definition for Free Text type.",
"properties": {
"definitionType": {
"const": "Free Text"
},
"definition": {
"type": "string",
"minLength": 1
}
}
},
{
"description": "The definition for Checklist type.",
"properties": {
"definition_type": {
"const": "Checklist"
},
"definition": {
"$ref": "http://schemas.infopack.io/100gruppen/rexs.checklist.1.schema.json"
}
}
},
{
"description": "The definition for Checklist with value points type.",
"properties": {
"definition_type": {
"const": "Checklist with value points"
},
"definition": {
"$ref": "http://schemas.infopack.io/100gruppen/rexs.checklist-with-value-points.1.schema.json"
}
}
},
{
"description": "The definition for Object property type.",
"properties": {
"definitionType": {
"const": "Object property"
},
"definition": {
"$ref": "http://schemas.infopack.io/100gruppen/rexs.object-property.1.schema.json"
}
}
},
{
"description": "The definition for Requirement combination type.",
"properties": {
"definition_type": {
"const": "Requirement combination"
},
"definition": {
"$ref": "http://schemas.infopack.io/100gruppen/rexs.requirement-combination.1.schema.json"
}
}
}
]
}
},
"additionalProperties": false
}
Relaterad information
Detaljer om acceptanskriterium