| 123456789101112131415161718192021222324252627282930313233343536373839 |
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "$id": "uart_preflight_receipt.schema.json",
- "title": "UART preflight receipt",
- "type": "object",
- "required": ["schema", "status", "serial", "enumeration", "safety", "authority_boundary"],
- "properties": {
- "schema": { "const": "uart-preflight-receipt-v1" },
- "status": { "type": "string" },
- "serial": {
- "type": "object",
- "required": ["baud", "format", "allowlisted", "opened"],
- "properties": {
- "baud": { "const": 115200 },
- "format": { "const": "8N1" },
- "allowlisted": { "type": "boolean" },
- "opened": { "const": false },
- "allowlist": { "type": "array", "items": { "type": "string" } }
- },
- "additionalProperties": true
- },
- "enumeration": { "type": "object", "additionalProperties": true },
- "safety": { "$ref": "#/$defs/safety" },
- "authority_boundary": { "type": "string" }
- },
- "additionalProperties": true,
- "$defs": {
- "safety": {
- "type": "object",
- "required": ["flash_attempted", "real_ptc_fan_bmc_action_attempted", "driver_install_attempted"],
- "properties": {
- "flash_attempted": { "const": false },
- "real_ptc_fan_bmc_action_attempted": { "const": false },
- "driver_install_attempted": { "const": false }
- },
- "additionalProperties": true
- }
- }
- }
|