JSON-schema Checklista
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schemas.infopack.io/100gruppen/rexs.checklist.1.schema.json",
"title": "Checklist",
"description": "A schema representing a checklist, which contains a compliance rule, title, and list of items to check.",
"type": "object",
"required": ["complianceRule", "items"],
"properties": {
"complianceRule": {
"description": "The number of items in checklist that shall be compliant.",
"oneOf": [{
"const": "all"
},
{
"type": "integer",
"minimum": 1
}
]
},
"checklistTitle": {
"description": "The optional title of the checklist.",
"type": "string",
"minLength": 1
},
"items": {
"description": "The list of checklist items.",
"type": "array",
"items": {
"type": "object",
"required": ["itemNumber", "definition"],
"properties": {
"itemNumber": {
"type": "integer",
"minimum": 1
},
"definition": {
"description": "The definition of what to comply with.",
"type": "string",
"minLength": 1
}
}
}
}
},
"additionalProperties": false
}