project_thermal_24ptc_8fan_v1.schema.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "$schema": "https://json-schema.org/draft/2020-12/schema",
  3. "$id": "project_thermal_24ptc_8fan_v1.schema.json",
  4. "type": "object",
  5. "required": [
  6. "project_id",
  7. "profile",
  8. "display_name",
  9. "features",
  10. "device",
  11. "uart",
  12. "outputs",
  13. "temperature",
  14. "pins",
  15. "resource_policy",
  16. "protocol",
  17. "timeouts",
  18. "watchdog"
  19. ],
  20. "not": {
  21. "required": ["motors"]
  22. },
  23. "properties": {
  24. "project_id": { "type": "string", "const": "prod2u-6400-front-back" },
  25. "profile": { "type": "string", "const": "thermal-24ptc-8fan-v1" },
  26. "display_name": { "type": "string", "minLength": 1 },
  27. "features": {
  28. "type": "object",
  29. "required": ["motors", "limits", "startup_calibration", "get_motor_status"],
  30. "properties": {
  31. "motors": { "const": false },
  32. "limits": { "const": false },
  33. "startup_calibration": { "const": false },
  34. "get_motor_status": { "const": false },
  35. "fan_fg": { "const": false },
  36. "fan_presence": { "const": false },
  37. "closed_loop": { "const": false },
  38. "runtime_project_select": { "const": false }
  39. },
  40. "additionalProperties": false
  41. },
  42. "device": { "type": "object" },
  43. "uart": { "type": "object" },
  44. "outputs": {
  45. "type": "object",
  46. "required": ["ptc_count", "fan_count", "output_count", "ptc_channels", "fan_channels"],
  47. "properties": {
  48. "ptc_count": { "const": 24 },
  49. "fan_count": { "const": 8 },
  50. "output_count": { "const": 32 }
  51. }
  52. },
  53. "temperature": { "type": "object" },
  54. "pins": { "type": "object" },
  55. "resource_policy": { "type": "object" },
  56. "protocol": { "type": "object" },
  57. "timeouts": { "type": "object" },
  58. "watchdog": { "type": "object" }
  59. },
  60. "additionalProperties": false
  61. }