changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "contract_version": {
- "const": "ardaro.agent-utilities.response.v1"
- },
- "identities": {
- "additionalProperties": false,
- "properties": {
- "analysis_result_identity": {
- "pattern": "^res_[0-9a-f]{64}(?![\\s\\S])",
- "type": "string"
- },
- "payment_identity": {
- "additionalProperties": false,
- "properties": {
- "protocol": {
- "const": "x402-v2"
- },
- "reference": {
- "pattern": "^pay_[0-9a-f]{64}(?![\\s\\S])",
- "type": "string"
- },
- "replayed": {
- "type": "boolean"
- }
- },
- "required": [
- "protocol",
- "reference",
- "replayed"
- ],
- "type": "object"
- }
- },
- "required": [
- "analysis_result_identity",
- "payment_identity"
- ],
- "type": "object"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "human_review_required": {
- "const": true,
- "type": "boolean"
- },
- "recommended_model": {
- "type": "null"
- },
- "route_category": {
- "enum": [
- "structured-calculation-review",
- "general-text-review"
- ],
- "type": "string"
- },
- "route_executed": {
- "const": false,
- "type": "boolean"
- },
- "routing_basis": {
- "const": "Keyword heuristic only; no model capability, availability or price comparison",
- "type": "string"
- },
- "status": {
- "const": "ADVISORY_ROUTE",
- "type": "string"
- }
- },
- "required": [
- "status",
- "route_category",
- "routing_basis",
- "recommended_model",
- "route_executed",
- "human_review_required"
- ],
- "type": "object"
- },
- "service_id": {
- "const": "ardaro.route_model_intent"
- },
- "status": {
- "const": "review_required"
- }
- },
- "required": [
- "contract_version",
- "service_id",
- "status",
- "result",
- "identities"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "contract_version": {
- "const": "ardaro.agent-utilities.response.v1"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 100,
- "type": "string"
- },
- "message": {
- "maxLength": 300,
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "status": {
- "const": "error"
- }
- },
- "required": [
- "contract_version",
- "status",
- "error"
- ],
- "type": "object"
- },
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": false,
- "properties": {
- "contract_version": {
- "const": "ardaro.agent-receipt-intelligence.response.v1"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 80,
- "type": "string"
- },
- "message": {
- "maxLength": 280,
- "type": "string"
- },
- "remediation": {
- "maxLength": 280,
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- },
- "service_code": {
- "enum": [
- "ARDARO_ARITHMETIC_MISMATCH",
- "ARDARO_DOCUMENT_TOO_LARGE",
- "ARDARO_DUPLICATE_SUSPECTED",
- "ARDARO_EXTRACTION_LOW_CONFIDENCE",
- "ARDARO_IDEMPOTENCY_CONFLICT",
- "ARDARO_INPUT_UNSUPPORTED",
- "ARDARO_PAYMENT_INVALID",
- "ARDARO_PAYMENT_RECONCILIATION_REQUIRED",
- "ARDARO_PAYMENT_REQUIRED",
- "ARDARO_RATE_LIMITED",
- "ARDARO_SERVICE_UNAVAILABLE"
- ]
- }
- },
- "required": [
- "code",
- "service_code",
- "message",
- "retryable",
- "remediation"
- ],
- "type": "object"
- },
- "status": {
- "const": "error"
- }
- },
- "required": [
- "contract_version",
- "status",
- "error"
- ],
- "type": "object"
- },
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": false,
- "properties": {
- "contract_version": {
- "const": "ardaro.agent-receipt-intelligence.response.v1"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 80,
- "minLength": 1,
- "type": "string"
- },
- "message": {
- "const": "Service is not ready."
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "service": {
- "const": "ardaro-receipt-intelligence"
- },
- "status": {
- "const": "not_ready"
- }
- },
- "required": [
- "contract_version",
- "status",
- "service",
- "error"
- ],
- "type": "object"
- },
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "accepts": {
- "items": {
- "properties": {
- "amount": {
- "type": "string"
- },
- "asset": {
- "type": "string"
- },
- "extra": {
- "additionalProperties": true,
- "type": "object"
- },
- "maxTimeoutSeconds": {
- "type": "integer"
- },
- "network": {
- "type": "string"
- },
- "payTo": {
- "type": "string"
- },
- "scheme": {
- "type": "string"
- }
- },
- "required": [
- "scheme",
- "network",
- "asset",
- "amount",
- "payTo",
- "maxTimeoutSeconds"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "error": {
- "type": [
- "string",
- "null"
- ]
- },
- "extensions": {
- "oneOf": [
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "resource": {
- "oneOf": [
- {
- "properties": {
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "iconUrl": {
- "type": [
- "string",
- "null"
- ]
- },
- "mimeType": {
- "type": [
- "string",
- "null"
- ]
- },
- "serviceName": {
- "type": [
- "string",
- "null"
- ]
- },
- "tags": {
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ]
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "url"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "x402Version": {
- "const": 2,
- "default": 2,
- "type": "integer"
- }
- },
- "required": [
- "accepts"
- ],
- "type": "object"
- },
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": false,
- "properties": {
- "error": {
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "message": {
- "type": "string"
- },
- "status": {
- "const": "error"
- }
- },
- "required": [
- "status",
- "message"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "contract_version": {
+ "const": "ardaro.agent-utilities.response.v1"
+ },
+ "identities": {
+ "additionalProperties": false,
+ "properties": {
+ "analysis_result_identity": {
+ "pattern": "^res_[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "payment_identity": {
+ "additionalProperties": false,
+ "properties": {
+ "protocol": {
+ "const": "x402-v2"
+ },
+ "reference": {
+ "pattern": "^pay_[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "replayed": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "protocol",
+ "reference",
+ "replayed"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "analysis_result_identity",
+ "payment_identity"
+ ],
+ "type": "object"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "human_review_required": {
+ "const": true,
+ "type": "boolean"
+ },
+ "recommended_model": {
+ "type": "null"
+ },
+ "route_category": {
+ "enum": [
+ "structured-calculation-review",
+ "general-text-review"
+ ],
+ "type": "string"
+ },
+ "route_executed": {
+ "const": false,
+ "type": "boolean"
+ },
+ "routing_basis": {
+ "const": "Keyword heuristic only; no model capability, availability or price comparison",
+ "type": "string"
+ },
+ "status": {
+ "const": "ADVISORY_ROUTE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "route_category",
+ "routing_basis",
+ "recommended_model",
+ "route_executed",
+ "human_review_required"
+ ],
+ "type": "object"
+ },
+ "service_id": {
+ "const": "ardaro.route_model_intent"
+ },
+ "status": {
+ "const": "review_required"
+ }
+ },
+ "required": [
+ "contract_version",
+ "service_id",
+ "status",
+ "result",
+ "identities"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "contract_version": {
+ "const": "ardaro.agent-utilities.response.v1"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 100,
+ "type": "string"
+ },
+ "message": {
+ "maxLength": 300,
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "status": {
+ "const": "error"
+ }
+ },
+ "required": [
+ "contract_version",
+ "status",
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "contract_version": {
+ "const": "ardaro.agent-receipt-intelligence.response.v1"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 80,
+ "type": "string"
+ },
+ "message": {
+ "maxLength": 280,
+ "type": "string"
+ },
+ "remediation": {
+ "maxLength": 280,
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ },
+ "service_code": {
+ "enum": [
+ "ARDARO_ARITHMETIC_MISMATCH",
+ "ARDARO_DOCUMENT_TOO_LARGE",
+ "ARDARO_DUPLICATE_SUSPECTED",
+ "ARDARO_EXTRACTION_LOW_CONFIDENCE",
+ "ARDARO_IDEMPOTENCY_CONFLICT",
+ "ARDARO_INPUT_UNSUPPORTED",
+ "ARDARO_PAYMENT_INVALID",
+ "ARDARO_PAYMENT_RECONCILIATION_REQUIRED",
+ "ARDARO_PAYMENT_REQUIRED",
+ "ARDARO_RATE_LIMITED",
+ "ARDARO_SERVICE_UNAVAILABLE"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "service_code",
+ "message",
+ "retryable",
+ "remediation"
+ ],
+ "type": "object"
+ },
+ "status": {
+ "const": "error"
+ }
+ },
+ "required": [
+ "contract_version",
+ "status",
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "contract_version": {
+ "const": "ardaro.agent-receipt-intelligence.response.v1"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "message": {
+ "const": "Service is not ready."
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "service": {
+ "const": "ardaro-receipt-intelligence"
+ },
+ "status": {
+ "const": "not_ready"
+ }
+ },
+ "required": [
+ "contract_version",
+ "status",
+ "service",
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "accepts": {
+ "items": {
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "asset": {
+ "type": "string"
+ },
+ "extra": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "maxTimeoutSeconds": {
+ "type": "integer"
+ },
+ "network": {
+ "type": "string"
+ },
+ "payTo": {
+ "type": "string"
+ },
+ "scheme": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "scheme",
+ "network",
+ "asset",
+ "amount",
+ "payTo",
+ "maxTimeoutSeconds"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "error": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "extensions": {
+ "oneOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "resource": {
+ "oneOf": [
+ {
+ "properties": {
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "iconUrl": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "mimeType": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "serviceName": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "tags": {
+ "oneOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "x402Version": {
+ "const": 2,
+ "default": 2,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "accepts"
+ ],
+ "type": "object"
+ },
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "status": {
+ "const": "error"
+ }
+ },
+ "required": [
+ "status",
+ "message"
+ ],
+ "type": "object"
+ }
+]