| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "$id": "uart_loopback_receipt.schema.json",
- "title": "UART loopback receipt",
- "type": "object",
- "required": ["schema", "status", "counterparty", "serial", "transcript", "safety"],
- "properties": {
- "schema": { "const": "uart-loopback-receipt-v1" },
- "status": { "type": "string" },
- "counterparty": { "enum": ["pc_emulator", "real_bmc"] },
- "serial": { "$ref": "#/$defs/serial" },
- "transcript": { "$ref": "#/$defs/artifact" },
- "safety": { "$ref": "#/$defs/safety" }
- },
- "additionalProperties": true,
- "$defs": {
- "serial": {
- "type": "object",
- "required": ["port", "baud", "format", "allowlisted"],
- "properties": {
- "port": { "type": "string" },
- "baud": { "const": 115200 },
- "format": { "const": "8N1" },
- "allowlisted": { "type": "boolean" },
- "dtr": { "type": "boolean" },
- "rts": { "type": "boolean" }
- },
- "additionalProperties": true
- },
- "artifact": {
- "type": "object",
- "required": ["path"],
- "properties": {
- "path": { "type": "string" },
- "sha256": { "type": "string", "pattern": "^[0-9a-fA-F]{64}$" }
- },
- "additionalProperties": true
- },
- "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
- }
- }
- }
|