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 | }, |
| 40 | "required": [ |
| 41 | "AssetTag" |
| 42 | ], |
| 43 | "type": "object" |
| 44 | } |
| 45 | }, |
| 46 | "Item": { |
Brad Bishop | 9453a68 | 2020-05-07 19:12:46 -0400 | [diff] [blame] | 47 | "Board": { |
| 48 | "Motherboard": { |
| 49 | "additionalProperties": false, |
| 50 | "properties": { |
| 51 | "ProductId": { |
| 52 | "type": "number" |
| 53 | } |
| 54 | }, |
| 55 | "required": [ |
| 56 | "ProductId" |
| 57 | ], |
| 58 | "type": "object" |
| 59 | } |
| 60 | }, |
| 61 | "Chassis": { |
| 62 | "additionalProperties": false, |
| 63 | "type": "object" |
| 64 | }, |
| 65 | "Panel": { |
| 66 | "additionalProperties": false, |
| 67 | "type": "object" |
| 68 | }, |
Brad Bishop | b980991 | 2020-05-07 17:15:31 -0400 | [diff] [blame] | 69 | "System": { |
| 70 | "additionalProperties": false, |
| 71 | "type": "object" |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | } |