For reading and verification only. You may not copy, use, modify or redistribute this code. Full notice on the main page.
contracts/schemas/acme-reserve-response.schema.json
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://all-mcp.fyi/contracts/v2/acme-reserve-response.schema.json", |
| 4 | "title": "200 answer of reserve. Over budget is NEVER an error: status deferred carries enroll_after (with jitter) and the device keeps whatever certificate it has. A granted reservation that is not confirmed within policy.budget.reservation_ttl_s frees its slot.", |
| 5 | "oneOf": [ |
| 6 | { |
| 7 | "type": "object", |
| 8 | "required": ["ok", "v", "status", "reservation_id", "class", "expires_at", "server_time"], |
| 9 | "additionalProperties": false, |
| 10 | "properties": { |
| 11 | "ok": {"const": true}, |
| 12 | "v": {"const": 1}, |
| 13 | "status": {"const": "granted"}, |
| 14 | "reservation_id": {"$ref": "common.schema.json#/$defs/reservation_id"}, |
| 15 | "class": {"$ref": "common.schema.json#/$defs/budget_class"}, |
| 16 | "expires_at": {"$ref": "common.schema.json#/$defs/epoch_s"}, |
| 17 | "server_time": {"$ref": "common.schema.json#/$defs/epoch_s"} |
| 18 | } |
| 19 | }, |
| 20 | { |
| 21 | "type": "object", |
| 22 | "required": ["ok", "v", "status", "enroll_after", "server_time"], |
| 23 | "additionalProperties": false, |
| 24 | "properties": { |
| 25 | "ok": {"const": true}, |
| 26 | "v": {"const": 1}, |
| 27 | "status": {"const": "deferred"}, |
| 28 | "enroll_after": {"$ref": "common.schema.json#/$defs/epoch_s"}, |
| 29 | "server_time": {"$ref": "common.schema.json#/$defs/epoch_s"} |
| 30 | } |
| 31 | } |
| 32 | ] |
| 33 | } |