prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.
Change-Id: I0d25f27a5e449578967915d9f570cc29246927d7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/libpldmresponder/examples/bios/enum_attrs.json b/libpldmresponder/examples/bios/enum_attrs.json
index e18ffef..bbf04ec 100644
--- a/libpldmresponder/examples/bios/enum_attrs.json
+++ b/libpldmresponder/examples/bios/enum_attrs.json
@@ -1,53 +1,53 @@
// This is a sample JSON configuration file for BIOS enumeration type
{
- "entries":[
- {
- "attribute_name" : "HMCManagedState",
- "possible_values" : [ "On", "Off" ],
- "default_values" : [ "On" ],
- // This BIOS attribute has a D-Bus property as backend.
- "dbus":
- {
- "object_path" : "/xyz/abc/def",
- "interface" : "xyz.openbmc_project.HMCManaged.State",
- "property_name" : "State",
- "property_type" : "string",
- // Number of property_values should match to the number of possible values.
- // Each is entry in the possible_values is mapped to entry in property_values.
- "property_values" : ["xyz.openbmc_project.State.On", "xyz.openbmc_project.State.Off"]
+ "entries": [
+ {
+ "attribute_name": "HMCManagedState",
+ "possible_values": ["On", "Off"],
+ "default_values": ["On"],
+ // This BIOS attribute has a D-Bus property as backend.
+ "dbus": {
+ "object_path": "/xyz/abc/def",
+ "interface": "xyz.openbmc_project.HMCManaged.State",
+ "property_name": "State",
+ "property_type": "string",
+ // Number of property_values should match to the number of possible values.
+ // Each is entry in the possible_values is mapped to entry in property_values.
+ "property_values": [
+ "xyz.openbmc_project.State.On",
+ "xyz.openbmc_project.State.Off"
+ ]
}
- },
- {
- "attribute_name" : "FWBootSide",
- "possible_values" : [ "Perm", "Temp" ],
- "default_values" : [ "Perm" ],
- "dbus":
- {
- "object_path" : "/xyz/abc/def",
- "interface" : "xyz.openbmc.FWBoot.Side",
- "property_name" : "Side",
- "property_type" : "bool",
- "property_values" : [true, false]
+ },
+ {
+ "attribute_name": "FWBootSide",
+ "possible_values": ["Perm", "Temp"],
+ "default_values": ["Perm"],
+ "dbus": {
+ "object_path": "/xyz/abc/def",
+ "interface": "xyz.openbmc.FWBoot.Side",
+ "property_name": "Side",
+ "property_type": "bool",
+ "property_values": [true, false]
}
- },
- {
- "attribute_name" : "InbandCodeUpdate",
- "possible_values" : [ "Allowed", "NotAllowed" ],
- "default_values" : [ "Allowed" ],
- "dbus":
- {
- "object_path" : "/xyz/abc/def",
- "interface" : "xyz.openbmc.InBandCodeUpdate",
- "property_name" : "Policy",
- "property_type" : "uint8_t",
- "property_values" : [0, 1]
+ },
+ {
+ "attribute_name": "InbandCodeUpdate",
+ "possible_values": ["Allowed", "NotAllowed"],
+ "default_values": ["Allowed"],
+ "dbus": {
+ "object_path": "/xyz/abc/def",
+ "interface": "xyz.openbmc.InBandCodeUpdate",
+ "property_name": "Policy",
+ "property_type": "uint8_t",
+ "property_values": [0, 1]
}
- },
- {
- // This is an example of BIOS Enumeration Read only attribute
- "attribute_name" : "CodeUpdatePolicy",
- "possible_values" : [ "Concurrent", "Disruptive" ],
- "default_values" : [ "Concurrent" ]
- }
+ },
+ {
+ // This is an example of BIOS Enumeration Read only attribute
+ "attribute_name": "CodeUpdatePolicy",
+ "possible_values": ["Concurrent", "Disruptive"],
+ "default_values": ["Concurrent"]
+ }
]
}
diff --git a/libpldmresponder/examples/bios/integer_attrs.json b/libpldmresponder/examples/bios/integer_attrs.json
index 17f16c1..aecc26d 100644
--- a/libpldmresponder/examples/bios/integer_attrs.json
+++ b/libpldmresponder/examples/bios/integer_attrs.json
@@ -1,35 +1,35 @@
{
- "entries":[
- {
- "attribute_name" : "VDD_AVSBUS_RAIL",
- "lower_bound" : 0,
- "upper_bound" : 15,
- "scalar_increment" : 1,
- "default_value" : 0,
- // This BIOS attribute has a D-Bus property as backend.
- "dbus":{
- "object_path" : "/xyz/openbmc_project/avsbus",
- "interface" : "xyz.openbmc.AvsBus.Manager",
- "property_type" : "uint8_t",
- "property_name" : "Rail"
- }
- },
- {
- // This is an example of BIOS Integer Read only attribute
- "attribute_name" : "SBE_IMAGE_MINIMUM_VALID_ECS",
- "lower_bound" : 1,
- "upper_bound" : 15,
- "scalar_increment" : 1,
- "default_value" : 2
- },
- {
- // This atttribute has invalid default value or scalar_increment, when
- // scalar_increment=2 and lower_bound=1, default_value must be 1, 3, 5...
- "attribute_name" : "INTEGER_INVALID_CASE",
- "lower_bound" : 1,
- "upper_bound" : 15,
- "scalar_increment" : 2,
- "default_value" : 4
- }
- ]
+ "entries": [
+ {
+ "attribute_name": "VDD_AVSBUS_RAIL",
+ "lower_bound": 0,
+ "upper_bound": 15,
+ "scalar_increment": 1,
+ "default_value": 0,
+ // This BIOS attribute has a D-Bus property as backend.
+ "dbus": {
+ "object_path": "/xyz/openbmc_project/avsbus",
+ "interface": "xyz.openbmc.AvsBus.Manager",
+ "property_type": "uint8_t",
+ "property_name": "Rail"
+ }
+ },
+ {
+ // This is an example of BIOS Integer Read only attribute
+ "attribute_name": "SBE_IMAGE_MINIMUM_VALID_ECS",
+ "lower_bound": 1,
+ "upper_bound": 15,
+ "scalar_increment": 1,
+ "default_value": 2
+ },
+ {
+ // This atttribute has invalid default value or scalar_increment, when
+ // scalar_increment=2 and lower_bound=1, default_value must be 1, 3, 5...
+ "attribute_name": "INTEGER_INVALID_CASE",
+ "lower_bound": 1,
+ "upper_bound": 15,
+ "scalar_increment": 2,
+ "default_value": 4
+ }
+ ]
}
diff --git a/libpldmresponder/examples/bios/string_attrs.json b/libpldmresponder/examples/bios/string_attrs.json
index 2e2eaf1..81b806e 100644
--- a/libpldmresponder/examples/bios/string_attrs.json
+++ b/libpldmresponder/examples/bios/string_attrs.json
@@ -1,47 +1,45 @@
// This is a sample JSON configuration file for BIOS string type
{
- "entries":[
- {
- "attribute_name" : "str_example1",
- // Possible values of string type {Unknown=0x00, ASCII=0x01, Hex=0x02,
- // UTF-8=0x03, UTF-16LE=0x04, UTF-16BE=0x05, Vendor Specific=0xFF}
- "string_type" : "ASCII",
- "minimum_string_length" : 1,
- "maximum_string_length" : 100,
- "default_string_length" : 3,
- "default_string" : "abc",
- // This BIOS attribute has a D-Bus property as backend.
- "dbus":
- {
- "object_path" : "/xyz/abc/def",
- "interface" : "xyz.openbmc_project.str_example1.value",
- "property_name" : "Str_example1",
- "property_type" : "string"
+ "entries": [
+ {
+ "attribute_name": "str_example1",
+ // Possible values of string type {Unknown=0x00, ASCII=0x01, Hex=0x02,
+ // UTF-8=0x03, UTF-16LE=0x04, UTF-16BE=0x05, Vendor Specific=0xFF}
+ "string_type": "ASCII",
+ "minimum_string_length": 1,
+ "maximum_string_length": 100,
+ "default_string_length": 3,
+ "default_string": "abc",
+ // This BIOS attribute has a D-Bus property as backend.
+ "dbus": {
+ "object_path": "/xyz/abc/def",
+ "interface": "xyz.openbmc_project.str_example1.value",
+ "property_name": "Str_example1",
+ "property_type": "string"
}
- },
- {
- "attribute_name" : "str_example2",
- "string_type" : "Hex",
- "minimum_string_length" : 0,
- "maximum_string_length" : 100,
- "default_string_length" : 0,
- "default_string" : "",
- "dbus":
- {
- "object_path" : "/xyz/abc/def",
- "interface" : "xyz.openbmc_project.str_example2.value",
- "property_name" : "Str_example2",
- "property_type" : "string"
+ },
+ {
+ "attribute_name": "str_example2",
+ "string_type": "Hex",
+ "minimum_string_length": 0,
+ "maximum_string_length": 100,
+ "default_string_length": 0,
+ "default_string": "",
+ "dbus": {
+ "object_path": "/xyz/abc/def",
+ "interface": "xyz.openbmc_project.str_example2.value",
+ "property_name": "Str_example2",
+ "property_type": "string"
}
- },
- {
- // This is an example of BIOS String Read only attribute
- "attribute_name" : "str_example3",
- "string_type" : "Unknown",
- "minimum_string_length" : 1,
- "maximum_string_length" : 100,
- "default_string_length" : 2,
- "default_string" : "ef"
- }
+ },
+ {
+ // This is an example of BIOS String Read only attribute
+ "attribute_name": "str_example3",
+ "string_type": "Unknown",
+ "minimum_string_length": 1,
+ "maximum_string_length": 100,
+ "default_string_length": 2,
+ "default_string": "ef"
+ }
]
}