Files
KArtSell.Aegis/docs/Design/kbx-foundation-v36/contracts/testing/kbx.test-evidence.schema.json
T

103 lines
1.8 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "KBX Scenario Evidence",
"type": "object",
"required": [
"scenarioId",
"runId",
"startedAt",
"contractVersions",
"environment",
"result",
"artifacts"
],
"properties": {
"scenarioId": {
"type": "string"
},
"runId": {
"type": "string"
},
"startedAt": {
"type": "string",
"format": "date-time"
},
"finishedAt": {
"type": "string",
"format": "date-time"
},
"result": {
"enum": [
"passed",
"failed",
"skipped"
]
},
"environment": {
"type": "object",
"required": [
"name",
"syntheticDataOnly"
],
"properties": {
"name": {
"type": "string"
},
"syntheticDataOnly": {
"const": true
},
"browser": {
"type": "string"
},
"database": {
"type": "string"
}
}
},
"contractVersions": {
"type": "object",
"required": [
"scenario",
"fixture"
],
"additionalProperties": {
"type": "string"
}
},
"correlationIds": {
"type": "array",
"items": {
"type": "string"
}
},
"artifacts": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"path"
],
"properties": {
"type": {
"type": "string"
},
"path": {
"type": "string"
},
"sha256": {
"type": "string"
}
}
}
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}