150 lines
3.1 KiB
JSON
150 lines
3.1 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"format": {
|
|
"const": "viano-case-interpretation-context"
|
|
},
|
|
"format_version": {
|
|
"type": "integer",
|
|
"const": 1
|
|
},
|
|
"case_ref": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"pattern": "\\S"
|
|
},
|
|
"case_sha256": {
|
|
"type": "string",
|
|
"pattern": "^[0-9a-f]{64}$"
|
|
},
|
|
"case": {
|
|
"type": "object",
|
|
"required": [
|
|
"case_id",
|
|
"package_id",
|
|
"analysis_revision"
|
|
],
|
|
"properties": {
|
|
"case_id": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"pattern": "\\S"
|
|
},
|
|
"package_id": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"pattern": "\\S"
|
|
},
|
|
"analysis_revision": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
}
|
|
}
|
|
},
|
|
"expected_behavior_completeness": {
|
|
"enum": [
|
|
"missing",
|
|
"unspecified",
|
|
"reported_complete",
|
|
"reported_partial",
|
|
"conflicting",
|
|
"researched_complete",
|
|
"researched_partial"
|
|
]
|
|
},
|
|
"expected_behavior_provenance": {
|
|
"enum": [
|
|
"tester",
|
|
"none",
|
|
"external_research",
|
|
"combined"
|
|
]
|
|
},
|
|
"sources": {
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"type": "string",
|
|
"pattern": "^[A-Z][0-9]{4,}$"
|
|
},
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"required": [
|
|
"kind",
|
|
"case_pointer",
|
|
"data"
|
|
],
|
|
"properties": {
|
|
"kind": {
|
|
"enum": [
|
|
"report",
|
|
"observation",
|
|
"tester_comment",
|
|
"tester_assumption",
|
|
"expectation",
|
|
"fact",
|
|
"fact_reference",
|
|
"reproduction",
|
|
"step",
|
|
"entity",
|
|
"data_quality",
|
|
"unread_reference",
|
|
"expectation_state"
|
|
]
|
|
},
|
|
"case_pointer": {
|
|
"type": "string",
|
|
"pattern": "^/"
|
|
},
|
|
"data": {}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"model_encoding": {
|
|
"const": "shared_json_v1"
|
|
},
|
|
"context_selection": {
|
|
"const": "phase_selection_v1"
|
|
},
|
|
"joint_generation": {
|
|
"type": "object",
|
|
"properties": {
|
|
"policy": {
|
|
"type": "object"
|
|
},
|
|
"prior_generations": {
|
|
"type": "array"
|
|
},
|
|
"version": {
|
|
"enum": [
|
|
2
|
|
]
|
|
},
|
|
"recovery_version": {
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"policy",
|
|
"prior_generations"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"format",
|
|
"format_version",
|
|
"case_ref",
|
|
"case_sha256",
|
|
"case",
|
|
"expected_behavior_completeness",
|
|
"expected_behavior_provenance",
|
|
"sources"
|
|
],
|
|
"additionalProperties": false
|
|
}
|