blob: b135a5cbac500bbbff0547e3c9fac5d154236c5c [file] [log] [blame]
James Feist1e3e6982018-08-03 16:09:28 -07001{
Brad Bishop64d7cec2020-05-01 10:00:23 -04002 "$schema": "http://json-schema.org/draft-07/schema#",
James Feist1e3e6982018-08-03 16:09:28 -07003 "anyOf": [
4 {
5 "type": "array",
6 "items": {
7 "type": "object",
8 "properties": {
9 "Exposes": {
10 "type": "array",
11 "items": {
Brad Bishop66665882020-05-07 17:05:18 -040012 "$ref": "legacy.json#/definitions/Aggregate"
James Feist1e3e6982018-08-03 16:09:28 -070013 }
14 },
15 "Name": {
16 "type": "string"
17 },
18 "Probe": {
19 "type": "string"
20 },
James Feist60d93d22019-07-10 15:08:35 -070021 "Type": {
22 "type": "string"
23 },
James Feist1e3e6982018-08-03 16:09:28 -070024 "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 Feist1e3e6982018-08-03 16:09:28 -070046 }
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 Bishop66665882020-05-07 17:05:18 -040062 "$ref": "legacy.json#/definitions/Aggregate"
James Feist1e3e6982018-08-03 16:09:28 -070063 }
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 Feist60d93d22019-07-10 15:08:35 -070081 "Type": {
82 "type": "string"
83 },
James Feist1e3e6982018-08-03 16:09:28 -070084 "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 Feist60d93d22019-07-10 15:08:35 -0700107 "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 Feist1e3e6982018-08-03 16:09:28 -0700123 }
124 },
125 "required": [
126 "Exposes",
127 "Name",
128 "Probe"
129 ]
130 }
131 ]
132}