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 <ed@tanous.net>
diff --git a/.prettierignore b/.prettierignore
index 27e428d..19e9c4d 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,2 +1 @@
redfish-core/schema/dmtf
-redfish-core/schema/oem
diff --git a/redfish-core/schema/oem/openbmc/json-schema/OemAccountService.json b/redfish-core/schema/oem/openbmc/json-schema/OemAccountService.json
index 2311d83..7b25a42 100644
--- a/redfish-core/schema/oem/openbmc/json-schema/OemAccountService.json
+++ b/redfish-core/schema/oem/openbmc/json-schema/OemAccountService.json
@@ -60,46 +60,31 @@
"description": "Indicates whether BasicAuth authorization is enabled.",
"longDescription": "The value of this property shall be a boolean indicating whether BasicAuth authorization is enabled.",
"readonly": false,
- "type": [
- "boolean",
- "null"
- ]
+ "type": ["boolean", "null"]
},
"Cookie": {
"description": "Indicates whether Cookie authorization is enabled.",
"longDescription": "The value of this property shall be a boolean indicating whether Cookie authorization is enabled.",
"readonly": false,
- "type": [
- "boolean",
- "null"
- ]
+ "type": ["boolean", "null"]
},
"SessionToken": {
"description": "Indicates whether SessionToken authorization is enabled.",
"longDescription": "The value of this property shall be a boolean indicating whether SessionToken authorization is enabled.",
"readonly": false,
- "type": [
- "boolean",
- "null"
- ]
+ "type": ["boolean", "null"]
},
"TLS": {
"description": "Indicates whether TLS authorization is enabled.",
"longDescription": "The value of this property shall be a boolean indicating whether TLS authorization is enabled.",
"readonly": false,
- "type": [
- "boolean",
- "null"
- ]
+ "type": ["boolean", "null"]
},
"XToken": {
"description": "Indicates whether XToken authorization is enabled.",
"longDescription": "The value of this property shall be a boolean indicating whether XToken authorization is enabled.",
"readonly": false,
- "type": [
- "boolean",
- "null"
- ]
+ "type": ["boolean", "null"]
}
},
"type": "object"
@@ -108,4 +93,4 @@
"owningEntity": "OpenBMC",
"release": "1.0",
"title": "#OemAccountService.v1_0_0"
-}
\ No newline at end of file
+}
diff --git a/redfish-core/schema/oem/openbmc/json-schema/OemManager.json b/redfish-core/schema/oem/openbmc/json-schema/OemManager.json
index e0be5b1..6771a3c 100644
--- a/redfish-core/schema/oem/openbmc/json-schema/OemManager.json
+++ b/redfish-core/schema/oem/openbmc/json-schema/OemManager.json
@@ -52,10 +52,7 @@
"Profile": {
"description": "Current thermal profile.",
"longDescription": "Current thermal profile.",
- "type": [
- "string",
- "null"
- ]
+ "type": ["string", "null"]
},
"StepwiseControllers": {
"anyOf": [
@@ -115,10 +112,7 @@
"Inputs": {
"description": "Input sensors to the PID controller.",
"items": {
- "type": [
- "string",
- "null"
- ]
+ "type": ["string", "null"]
},
"longDescription": "Input sensors to the PID controller.",
"type": "array"
@@ -141,10 +135,7 @@
"Outputs": {
"description": "Output sensors to the PID controller.",
"items": {
- "type": [
- "string",
- "null"
- ]
+ "type": ["string", "null"]
},
"longDescription": "Output sensors to the PID controller.",
"type": "array"
@@ -370,10 +361,7 @@
"Inputs": {
"description": "Input sensors to the PID controller.",
"items": {
- "type": [
- "string",
- "null"
- ]
+ "type": ["string", "null"]
},
"longDescription": "Input sensors to the PID controller.",
"type": "array"
@@ -477,18 +465,12 @@
"Direction": {
"description": "Direction that the stepwise controller applies.",
"longDescription": "Direction that the stepwise controller applies. Options include Ceiling and Floor.",
- "type": [
- "string",
- "null"
- ]
+ "type": ["string", "null"]
},
"Inputs": {
"description": "Input sensors to the Stepwise controller.",
"items": {
- "type": [
- "string",
- "null"
- ]
+ "type": ["string", "null"]
},
"longDescription": "Input sensors to the Stepwise controller.",
"type": "array"
diff --git a/redfish-core/schema/oem/openbmc/json-schema/OemVirtualMedia.json b/redfish-core/schema/oem/openbmc/json-schema/OemVirtualMedia.json
index 9ae641a..9f30ad0 100644
--- a/redfish-core/schema/oem/openbmc/json-schema/OemVirtualMedia.json
+++ b/redfish-core/schema/oem/openbmc/json-schema/OemVirtualMedia.json
@@ -26,10 +26,7 @@
"description": "Indicates endpoint socket name and location.",
"longDescription": "The value of this property shall be a structure ring indicating location and name of the socket used to communicate with nbd server.",
"readonly": true,
- "type": [
- "string",
- "null"
- ]
+ "type": ["string", "null"]
}
},
"type": "object"
@@ -38,4 +35,4 @@
"owningEntity": "OpenBMC",
"release": "1.0",
"title": "#OemVirtualMedia.v1_0_0"
-}
\ No newline at end of file
+}