38 lines
1.6 KiB
JSON
38 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://aas.example/schemas/v1/abstention-index.schema.json",
|
|
"title": "AAS v1 pre-declared abstention corpus index",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["schemaVersion", "corpusVersion", "status", "expectedStatus", "frozenSupportedIntents", "reasonCodeRegistry", "families", "cases", "reviews"],
|
|
"properties": {
|
|
"schemaVersion": { "const": 1 },
|
|
"corpusVersion": { "const": "1.0.0" },
|
|
"status": { "enum": ["pendingIndependentReview", "frozen"] },
|
|
"expectedStatus": { "const": "insufficientCoverage" },
|
|
"frozenSupportedIntents": { "type": "array", "minItems": 6, "maxItems": 6, "uniqueItems": true, "items": { "type": "string" } },
|
|
"reasonCodeRegistry": { "const": "reason-codes.v1.json" },
|
|
"families": { "type": "array", "minItems": 6, "uniqueItems": true, "items": { "type": "string" } },
|
|
"cases": {
|
|
"type": "array",
|
|
"minItems": 30,
|
|
"maxItems": 30,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["caseId", "family", "inputPath", "labelPath", "taskFamilyFingerprint", "provenance", "reviewStatus"],
|
|
"properties": {
|
|
"caseId": { "type": "string" },
|
|
"family": { "type": "string" },
|
|
"inputPath": { "type": "string" },
|
|
"labelPath": { "type": "string" },
|
|
"taskFamilyFingerprint": { "type": "string" },
|
|
"provenance": { "type": "object" },
|
|
"reviewStatus": { "enum": ["pendingIndependentReview", "approved"] }
|
|
}
|
|
}
|
|
},
|
|
"reviews": { "type": "array", "maxItems": 0 }
|
|
}
|
|
}
|