James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 1 | { |
Brad Bishop | 64d7cec | 2020-05-01 10:00:23 -0400 | [diff] [blame] | 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 3 | "anyOf": [ |
| 4 | { |
| 5 | "type": "array", |
| 6 | "items": { |
| 7 | "type": "object", |
| 8 | "properties": { |
| 9 | "Exposes": { |
| 10 | "type": "array", |
| 11 | "items": { |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame^] | 12 | "$ref": "legacy.json#/definitions/Aggregate" |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 13 | } |
| 14 | }, |
| 15 | "Name": { |
| 16 | "type": "string" |
| 17 | }, |
| 18 | "Probe": { |
| 19 | "type": "string" |
| 20 | }, |
James Feist | 60d93d2 | 2019-07-10 15:08:35 -0700 | [diff] [blame] | 21 | "Type": { |
| 22 | "type": "string" |
| 23 | }, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 24 | "xyz.openbmc_project.Inventory.Decorator.Asset": { |
| 25 | "type": "object", |
| 26 | "properties": { |
| 27 | "Manufacturer": { |
| 28 | "type": "string" |
| 29 | }, |
| 30 | "Model": { |
| 31 | "type": "string" |
| 32 | }, |
| 33 | "PartNumber": { |
| 34 | "type": "string" |
| 35 | }, |
| 36 | "SerialNumber": { |
| 37 | "type": "string" |
| 38 | } |
| 39 | }, |
| 40 | "required": [ |
| 41 | "Manufacturer", |
| 42 | "Model", |
| 43 | "PartNumber", |
| 44 | "SerialNumber" |
| 45 | ] |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 46 | } |
| 47 | }, |
| 48 | "required": [ |
| 49 | "Exposes", |
| 50 | "Name", |
| 51 | "Probe", |
| 52 | "xyz.openbmc_project.Inventory.Decorator.Asset" |
| 53 | ] |
| 54 | } |
| 55 | }, |
| 56 | { |
| 57 | "type": "object", |
| 58 | "properties": { |
| 59 | "Exposes": { |
| 60 | "type": "array", |
| 61 | "items": { |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame^] | 62 | "$ref": "legacy.json#/definitions/Aggregate" |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 63 | } |
| 64 | }, |
| 65 | "Name": { |
| 66 | "type": "string" |
| 67 | }, |
| 68 | "Probe": { |
| 69 | "anyOf": [ |
| 70 | { |
| 71 | "type": "string" |
| 72 | }, |
| 73 | { |
| 74 | "type": "array", |
| 75 | "items": { |
| 76 | "type": "string" |
| 77 | } |
| 78 | } |
| 79 | ] |
| 80 | }, |
James Feist | 60d93d2 | 2019-07-10 15:08:35 -0700 | [diff] [blame] | 81 | "Type": { |
| 82 | "type": "string" |
| 83 | }, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 84 | "xyz.openbmc_project.Inventory.Decorator.Asset": { |
| 85 | "type": "object", |
| 86 | "properties": { |
| 87 | "Manufacturer": { |
| 88 | "type": "string" |
| 89 | }, |
| 90 | "Model": { |
| 91 | "type": "string" |
| 92 | }, |
| 93 | "PartNumber": { |
| 94 | "type": "string" |
| 95 | }, |
| 96 | "SerialNumber": { |
| 97 | "type": "string" |
| 98 | } |
| 99 | }, |
| 100 | "required": [ |
| 101 | "Manufacturer", |
| 102 | "Model", |
| 103 | "PartNumber", |
| 104 | "SerialNumber" |
| 105 | ] |
| 106 | }, |
James Feist | 60d93d2 | 2019-07-10 15:08:35 -0700 | [diff] [blame] | 107 | "ProductId": { |
| 108 | "type": "number" |
| 109 | }, |
| 110 | "xyz.openbmc_project.Inventory.Decorator.AssetTag": { |
| 111 | "type": "object", |
| 112 | "properties": { |
| 113 | "AssetTag": { |
| 114 | "type": "string" |
| 115 | } |
| 116 | }, |
| 117 | "required": [ |
| 118 | "AssetTag" |
| 119 | ] |
| 120 | }, |
| 121 | "xyz.openbmc_project.Inventory.Item.System": { |
| 122 | "type": "object" |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 123 | } |
| 124 | }, |
| 125 | "required": [ |
| 126 | "Exposes", |
| 127 | "Name", |
| 128 | "Probe" |
| 129 | ] |
| 130 | } |
| 131 | ] |
| 132 | } |