57 lines
2.1 KiB
JSON
57 lines
2.1 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://arr.local/schemas/arr-direct-legacy-structured-result-v3.json",
|
|
"title": "Retired ARR direct-MCP structured result v3",
|
|
"description": "Read-only compatibility contract for the retired direct-MCP success route. It intentionally has no manual-review fields or review-required status.",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"result_schema_version",
|
|
"status",
|
|
"activation_eligible",
|
|
"ingestion_mode",
|
|
"business_date",
|
|
"processor_version",
|
|
"rule_set_sha256",
|
|
"source_rows",
|
|
"removed_by_rate_code",
|
|
"removed_as_duplicates",
|
|
"output_rows",
|
|
"outcome_counts",
|
|
"channels",
|
|
"artifacts",
|
|
"records",
|
|
"errors"
|
|
],
|
|
"properties": {
|
|
"result_schema_version": { "type": "string", "const": "3.0" },
|
|
"status": { "type": "string", "const": "success" },
|
|
"activation_eligible": { "type": "boolean", "const": true },
|
|
"ingestion_mode": { "type": "string", "const": "opera_xml" },
|
|
"business_date": { "type": "string", "format": "date" },
|
|
"processor_version": { "type": "string", "const": "3.0.0" },
|
|
"rule_set_sha256": { "$ref": "#/$defs/sha256" },
|
|
"source_rows": { "type": "integer", "minimum": 0 },
|
|
"removed_by_rate_code": { "type": "integer", "minimum": 0 },
|
|
"removed_as_duplicates": { "type": "integer", "minimum": 0 },
|
|
"output_rows": { "type": "integer", "minimum": 0 },
|
|
"outcome_counts": { "type": "object" },
|
|
"channels": { "type": "array", "items": { "$ref": "#/$defs/channel" } },
|
|
"artifacts": { "type": "object" },
|
|
"records": { "type": "array", "items": { "type": "object" } },
|
|
"errors": { "type": "array", "maxItems": 0 }
|
|
},
|
|
"$defs": {
|
|
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
"channel": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["worksheet", "rows"],
|
|
"properties": {
|
|
"worksheet": { "type": "string", "minLength": 1 },
|
|
"rows": { "type": "integer", "minimum": 0 }
|
|
}
|
|
}
|
|
}
|
|
}
|