Skip to content

Commit 40a5fb2

Browse files
committed
Let OEM schemas be formatted by prettier
For OpenBMC owned schemas, let prettier handle the formatting for us, given that OpenBMC owns them. Change-Id: If9558dae8a34fed72b926c2dd95fcff887c8119c Signed-off-by: Ed Tanous <[email protected]>
1 parent 1fc2135 commit 40a5fb2

File tree

4 files changed

+14
-51
lines changed

4 files changed

+14
-51
lines changed

.prettierignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
redfish-core/schema/dmtf
2-
redfish-core/schema/oem

redfish-core/schema/oem/openbmc/json-schema/OemAccountService.json

+6-21
Original file line numberDiff line numberDiff line change
@@ -60,46 +60,31 @@
6060
"description": "Indicates whether BasicAuth authorization is enabled.",
6161
"longDescription": "The value of this property shall be a boolean indicating whether BasicAuth authorization is enabled.",
6262
"readonly": false,
63-
"type": [
64-
"boolean",
65-
"null"
66-
]
63+
"type": ["boolean", "null"]
6764
},
6865
"Cookie": {
6966
"description": "Indicates whether Cookie authorization is enabled.",
7067
"longDescription": "The value of this property shall be a boolean indicating whether Cookie authorization is enabled.",
7168
"readonly": false,
72-
"type": [
73-
"boolean",
74-
"null"
75-
]
69+
"type": ["boolean", "null"]
7670
},
7771
"SessionToken": {
7872
"description": "Indicates whether SessionToken authorization is enabled.",
7973
"longDescription": "The value of this property shall be a boolean indicating whether SessionToken authorization is enabled.",
8074
"readonly": false,
81-
"type": [
82-
"boolean",
83-
"null"
84-
]
75+
"type": ["boolean", "null"]
8576
},
8677
"TLS": {
8778
"description": "Indicates whether TLS authorization is enabled.",
8879
"longDescription": "The value of this property shall be a boolean indicating whether TLS authorization is enabled.",
8980
"readonly": false,
90-
"type": [
91-
"boolean",
92-
"null"
93-
]
81+
"type": ["boolean", "null"]
9482
},
9583
"XToken": {
9684
"description": "Indicates whether XToken authorization is enabled.",
9785
"longDescription": "The value of this property shall be a boolean indicating whether XToken authorization is enabled.",
9886
"readonly": false,
99-
"type": [
100-
"boolean",
101-
"null"
102-
]
87+
"type": ["boolean", "null"]
10388
}
10489
},
10590
"type": "object"
@@ -108,4 +93,4 @@
10893
"owningEntity": "OpenBMC",
10994
"release": "1.0",
11095
"title": "#OemAccountService.v1_0_0"
111-
}
96+
}

redfish-core/schema/oem/openbmc/json-schema/OemManager.json

+6-24
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@
5252
"Profile": {
5353
"description": "Current thermal profile.",
5454
"longDescription": "Current thermal profile.",
55-
"type": [
56-
"string",
57-
"null"
58-
]
55+
"type": ["string", "null"]
5956
},
6057
"StepwiseControllers": {
6158
"anyOf": [
@@ -115,10 +112,7 @@
115112
"Inputs": {
116113
"description": "Input sensors to the PID controller.",
117114
"items": {
118-
"type": [
119-
"string",
120-
"null"
121-
]
115+
"type": ["string", "null"]
122116
},
123117
"longDescription": "Input sensors to the PID controller.",
124118
"type": "array"
@@ -141,10 +135,7 @@
141135
"Outputs": {
142136
"description": "Output sensors to the PID controller.",
143137
"items": {
144-
"type": [
145-
"string",
146-
"null"
147-
]
138+
"type": ["string", "null"]
148139
},
149140
"longDescription": "Output sensors to the PID controller.",
150141
"type": "array"
@@ -370,10 +361,7 @@
370361
"Inputs": {
371362
"description": "Input sensors to the PID controller.",
372363
"items": {
373-
"type": [
374-
"string",
375-
"null"
376-
]
364+
"type": ["string", "null"]
377365
},
378366
"longDescription": "Input sensors to the PID controller.",
379367
"type": "array"
@@ -477,18 +465,12 @@
477465
"Direction": {
478466
"description": "Direction that the stepwise controller applies.",
479467
"longDescription": "Direction that the stepwise controller applies. Options include Ceiling and Floor.",
480-
"type": [
481-
"string",
482-
"null"
483-
]
468+
"type": ["string", "null"]
484469
},
485470
"Inputs": {
486471
"description": "Input sensors to the Stepwise controller.",
487472
"items": {
488-
"type": [
489-
"string",
490-
"null"
491-
]
473+
"type": ["string", "null"]
492474
},
493475
"longDescription": "Input sensors to the Stepwise controller.",
494476
"type": "array"

redfish-core/schema/oem/openbmc/json-schema/OemVirtualMedia.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@
2626
"description": "Indicates endpoint socket name and location.",
2727
"longDescription": "The value of this property shall be a structure ring indicating location and name of the socket used to communicate with nbd server.",
2828
"readonly": true,
29-
"type": [
30-
"string",
31-
"null"
32-
]
29+
"type": ["string", "null"]
3330
}
3431
},
3532
"type": "object"
@@ -38,4 +35,4 @@
3835
"owningEntity": "OpenBMC",
3936
"release": "1.0",
4037
"title": "#OemVirtualMedia.v1_0_0"
41-
}
38+
}

0 commit comments

Comments
 (0)