Files
popki/schemas/checklist.schema.json
T

202 lines
4.5 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "urn:ald-transition:checklist",
"type": "object",
"properties": {
"schema_version": {
"const": 1
},
"items": {
"type": "array",
"maxItems": 1000,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 128
},
"phase": {
"type": "string",
"maxLength": 128
},
"title_ru": {
"type": "string",
"maxLength": 4096
},
"purpose_ru": {
"type": "string",
"maxLength": 4096
},
"host_scope": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
},
"prerequisites": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
},
"steps_ru": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
},
"expected_result_ru": {
"type": "string",
"maxLength": 4096
},
"failure_guidance_ru": {
"type": "string",
"maxLength": 4096
},
"evidence_ids": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
}
},
"required": [
"id",
"phase",
"title_ru",
"purpose_ru",
"host_scope",
"prerequisites",
"steps_ru",
"expected_result_ru",
"failure_guidance_ru",
"evidence_ids"
],
"additionalProperties": false
}
},
"observations": {
"type": "array",
"maxItems": 50000,
"items": {
"type": "object",
"properties": {
"item_id": {
"type": "string",
"maxLength": 4096
},
"host_id": {
"type": "string",
"maxLength": 4096
},
"result": {
"enum": [
"PASS",
"FAIL",
"PARTIAL",
"NOT_CHECKED",
"ERROR",
"STALE"
]
},
"checked_by": {
"type": "string",
"maxLength": 4096
},
"checked_at": {
"type": "string",
"maxLength": 40,
"format": "date-time"
},
"method": {
"enum": [
"HUMAN",
"AUTOMATIC"
]
},
"note": {
"type": "string",
"maxLength": 4096
},
"plan_revision": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"profile_revision": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"applicability": {
"enum": [
"APPLICABLE",
"NOT_APPLICABLE_WITH_REASON",
"UNKNOWN"
]
},
"evidence_ids": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
},
"original_result": {
"enum": [
"PASS",
"FAIL",
"PARTIAL",
"NOT_CHECKED",
"ERROR",
"STALE"
]
},
"sequence": {
"type": "integer",
"minimum": 1
}
},
"required": [
"item_id",
"host_id",
"result",
"checked_by",
"checked_at",
"method",
"note",
"plan_revision",
"profile_revision",
"applicability",
"evidence_ids"
],
"additionalProperties": false
}
},
"context_digest": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"exported_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"schema_version",
"items",
"observations"
],
"additionalProperties": false
}