😏
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"title": "Dated current-source dossier",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"status": {"type": "string", "enum": ["supported", "conflict", "blocked"]},
|
||||
"question": {"type": "string", "minLength": 1},
|
||||
"claims": {
|
||||
"type": "array",
|
||||
"maxItems": 50,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"claim": {"type": "string", "minLength": 1},
|
||||
"source_url": {"type": "string", "format": "uri"},
|
||||
"source_date": {"type": "string", "format": "date"},
|
||||
"retrieved_at": {"type": "string", "format": "date-time"},
|
||||
"authority": {"type": "string", "enum": ["primary", "supporting"]},
|
||||
"evidence": {"type": "string", "minLength": 1},
|
||||
"inference": {"type": "boolean"}
|
||||
},
|
||||
"required": ["claim", "source_url", "source_date", "retrieved_at", "authority", "evidence", "inference"]
|
||||
}
|
||||
},
|
||||
"conflicts": {"type": "array", "items": {"type": "string"}, "maxItems": 30},
|
||||
"limitations": {"type": "array", "items": {"type": "string"}, "maxItems": 30}
|
||||
},
|
||||
"required": ["status", "question", "claims", "conflicts", "limitations"],
|
||||
"allOf": [
|
||||
{
|
||||
"if": {"properties": {"status": {"const": "supported"}}, "required": ["status"]},
|
||||
"then": {"properties": {"claims": {"minItems": 1}, "conflicts": {"maxItems": 0}}}
|
||||
},
|
||||
{
|
||||
"if": {"properties": {"status": {"const": "conflict"}}, "required": ["status"]},
|
||||
"then": {"properties": {"conflicts": {"minItems": 1}}}
|
||||
},
|
||||
{
|
||||
"if": {"properties": {"status": {"const": "blocked"}}, "required": ["status"]},
|
||||
"then": {"properties": {"limitations": {"minItems": 1}}}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"title": "Independent source-to-code audit",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"verdict": {"type": "string", "enum": ["pass", "concerns", "fail", "blocked"]},
|
||||
"checked_sources": {"type": "array", "items": {"type": "string", "format": "uri"}, "maxItems": 50, "uniqueItems": true},
|
||||
"findings": {
|
||||
"type": "array",
|
||||
"maxItems": 50,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"claim": {"type": "string", "minLength": 1},
|
||||
"source_url": {"type": "string", "format": "uri"},
|
||||
"code_location": {"type": "string", "minLength": 1},
|
||||
"evidence": {"type": "string", "minLength": 1}
|
||||
},
|
||||
"required": ["claim", "source_url", "code_location", "evidence"]
|
||||
}
|
||||
},
|
||||
"conflicts": {"type": "array", "items": {"type": "string"}, "maxItems": 30},
|
||||
"blockers": {"type": "array", "items": {"type": "string"}, "maxItems": 30}
|
||||
},
|
||||
"required": ["verdict", "checked_sources", "findings", "conflicts", "blockers"],
|
||||
"allOf": [
|
||||
{
|
||||
"if": {"properties": {"verdict": {"const": "pass"}}, "required": ["verdict"]},
|
||||
"then": {"properties": {"checked_sources": {"minItems": 1}, "findings": {"maxItems": 0}, "blockers": {"maxItems": 0}}}
|
||||
},
|
||||
{
|
||||
"if": {"properties": {"verdict": {"const": "blocked"}}, "required": ["verdict"]},
|
||||
"then": {"properties": {"blockers": {"minItems": 1}}}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user