Brad Bishop | b980991 | 2020-05-07 17:15:31 -0400 | [diff] [blame] | 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "title": "Schemas for JSON representations of OpenBMC DBus interfaces", |
| 4 | "definitions": { |
| 5 | "xyz": { |
| 6 | "openbmc_project": { |
| 7 | "Inventory": { |
| 8 | "Decorator": { |
| 9 | "Asset": { |
| 10 | "additionalProperties": false, |
| 11 | "properties": { |
| 12 | "Manufacturer": { |
| 13 | "type": "string" |
| 14 | }, |
| 15 | "Model": { |
| 16 | "type": "string" |
| 17 | }, |
| 18 | "PartNumber": { |
| 19 | "type": "string" |
| 20 | }, |
| 21 | "SerialNumber": { |
| 22 | "type": "string" |
| 23 | } |
| 24 | }, |
| 25 | "required": [ |
| 26 | "Manufacturer", |
| 27 | "Model", |
| 28 | "PartNumber", |
| 29 | "SerialNumber" |
| 30 | ], |
| 31 | "type": "object" |
| 32 | }, |
| 33 | "AssetTag": { |
| 34 | "additionalProperties": false, |
| 35 | "properties": { |
| 36 | "AssetTag": { |
| 37 | "type": "string" |
| 38 | } |
| 39 | }, |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame] | 40 | "required": ["AssetTag"], |
Brad Bishop | b980991 | 2020-05-07 17:15:31 -0400 | [diff] [blame] | 41 | "type": "object" |
Kumar Thangavel | e5c473f | 2023-01-27 15:09:45 +0530 | [diff] [blame] | 42 | }, |
Chau Ly | 6185478 | 2023-11-29 10:16:33 +0000 | [diff] [blame] | 43 | "Compatible": { |
| 44 | "additionalProperties": false, |
| 45 | "properties": { |
| 46 | "Names": { |
| 47 | "type": "array", |
| 48 | "items": { |
| 49 | "type": "string" |
| 50 | } |
| 51 | } |
| 52 | }, |
| 53 | "required": ["Names"], |
| 54 | "type": "object" |
| 55 | }, |
Kumar Thangavel | e5c473f | 2023-01-27 15:09:45 +0530 | [diff] [blame] | 56 | "Replaceable": { |
| 57 | "additionalProperties": false, |
| 58 | "properties": { |
| 59 | "FieldReplaceable": { |
| 60 | "type": "boolean" |
Logananth Sundararaj | 7396332 | 2023-01-24 18:23:44 +0530 | [diff] [blame] | 61 | }, |
| 62 | "HotPluggable": { |
| 63 | "type": "boolean" |
Kumar Thangavel | e5c473f | 2023-01-27 15:09:45 +0530 | [diff] [blame] | 64 | } |
| 65 | }, |
Logananth Sundararaj | 7396332 | 2023-01-24 18:23:44 +0530 | [diff] [blame] | 66 | "required": ["FieldReplaceable", "HotPluggable"], |
Kumar Thangavel | e5c473f | 2023-01-27 15:09:45 +0530 | [diff] [blame] | 67 | "type": "object" |
Delphine CC Chiu | ec42f45 | 2024-02-16 09:54:52 +0800 | [diff] [blame^] | 68 | }, |
| 69 | "Slot": { |
| 70 | "additionalProperties": false, |
| 71 | "properties": { |
| 72 | "SlotNumber": { |
| 73 | "type": ["string", "number"] |
| 74 | } |
| 75 | }, |
| 76 | "required": ["SlotNumber"], |
| 77 | "type": "object" |
Brad Bishop | b980991 | 2020-05-07 17:15:31 -0400 | [diff] [blame] | 78 | } |
| 79 | }, |
| 80 | "Item": { |
Brad Bishop | 9453a68 | 2020-05-07 19:12:46 -0400 | [diff] [blame] | 81 | "Board": { |
| 82 | "Motherboard": { |
| 83 | "additionalProperties": false, |
| 84 | "properties": { |
| 85 | "ProductId": { |
| 86 | "type": "number" |
| 87 | } |
| 88 | }, |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame] | 89 | "required": ["ProductId"], |
Brad Bishop | 9453a68 | 2020-05-07 19:12:46 -0400 | [diff] [blame] | 90 | "type": "object" |
| 91 | } |
| 92 | }, |
| 93 | "Chassis": { |
| 94 | "additionalProperties": false, |
| 95 | "type": "object" |
| 96 | }, |
| 97 | "Panel": { |
| 98 | "additionalProperties": false, |
| 99 | "type": "object" |
| 100 | }, |
Brad Bishop | b980991 | 2020-05-07 17:15:31 -0400 | [diff] [blame] | 101 | "System": { |
| 102 | "additionalProperties": false, |
| 103 | "type": "object" |
| 104 | } |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 | } |