bmc_uart_protocol_receipt.schema.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "$schema": "https://json-schema.org/draft/2020-12/schema",
  3. "$id": "bmc_uart_protocol_receipt.schema.json",
  4. "title": "BMC UART protocol offline receipt",
  5. "type": "object",
  6. "required": ["schema", "status", "scenario", "counterparty", "parser", "safety", "authority_boundary"],
  7. "properties": {
  8. "schema": { "const": "bmc-uart-protocol-receipt-v1" },
  9. "status": { "type": "string" },
  10. "scenario": { "type": "string" },
  11. "counterparty": { "enum": ["pc_emulator", "real_bmc"] },
  12. "parser": {
  13. "type": "object",
  14. "required": ["status", "sample_count", "missing_mask", "raw_token_count", "rejected_echo_windows"],
  15. "properties": {
  16. "status": { "type": "string" },
  17. "sample_count": { "type": "integer", "minimum": 0 },
  18. "missing_mask": { "type": "integer", "minimum": 0 },
  19. "raw_token_count": { "type": "integer", "minimum": 0 },
  20. "selected_window_start": { "type": "integer" },
  21. "rejected_echo_windows": { "type": "integer", "minimum": 0 }
  22. },
  23. "additionalProperties": true
  24. },
  25. "safety": {
  26. "type": "object",
  27. "required": ["flash_attempted", "real_ptc_fan_bmc_action_attempted", "driver_install_attempted"],
  28. "properties": {
  29. "flash_attempted": { "const": false },
  30. "real_ptc_fan_bmc_action_attempted": { "const": false },
  31. "driver_install_attempted": { "const": false }
  32. },
  33. "additionalProperties": true
  34. },
  35. "authority_boundary": { "type": "string" }
  36. },
  37. "additionalProperties": true
  38. }