2026-09-23 20:00:47 +08:00
|
|
|
{
|
|
|
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
|
|
|
"$id": "https://aps.local/contracts/approval.schema.json",
|
|
|
|
|
"title": "ApprovalDecisionRequest",
|
|
|
|
|
"description": "客户端对确认卡的响应(架构设计 4.2:确认卡防的是误解意图,不是防越权)。",
|
2026-09-23 20:52:24 +08:00
|
|
|
"$ref": "#/$defs/ApprovalDecisionRequest",
|
|
|
|
|
"$defs": {
|
|
|
|
|
"ApprovalDecisionRequest": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": ["decision", "revision", "idempotencyKey"],
|
|
|
|
|
"properties": {
|
|
|
|
|
"decision": { "type": "string", "enum": ["approve", "reject"] },
|
|
|
|
|
"revision": { "type": "integer", "minimum": 0 },
|
|
|
|
|
"idempotencyKey": { "type": "string", "minLength": 8 },
|
|
|
|
|
"note": { "type": "string" }
|
|
|
|
|
},
|
|
|
|
|
"additionalProperties": false
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-23 20:00:47 +08:00
|
|
|
}
|