Finish JSON validator, add debug out.
diff --git a/specification/json/cper-json-section-descriptor.json b/specification/json/cper-json-section-descriptor.json
index 6148a5b..438e28a 100644
--- a/specification/json/cper-json-section-descriptor.json
+++ b/specification/json/cper-json-section-descriptor.json
@@ -69,13 +69,13 @@
},
"sectionType": {
"type": "object",
- "required": ["data", "name"],
+ "required": ["data", "type"],
"properties": {
"data": {
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{16}$"
},
- "name": {
+ "type": {
"type": "string"
}
}
diff --git a/specification/json/cper-json.json b/specification/json/cper-json.json
index e0e7133..302adc9 100644
--- a/specification/json/cper-json.json
+++ b/specification/json/cper-json.json
@@ -35,7 +35,8 @@
{ "$ref": "./sections/cper-iommu-dmar.json" },
{ "$ref": "./sections/cper-ccix-per.json" },
{ "$ref": "./sections/cper-cxl-protocol.json" },
- { "$ref": "./sections/cper-cxl-component.json" }
+ { "$ref": "./sections/cper-cxl-component.json" },
+ { "$ref": "./sections/cper-unknown.json" }
]
}
}
diff --git a/specification/json/sections/cper-arm-processor.json b/specification/json/sections/cper-arm-processor.json
index 4e473fc..ccad75b 100644
--- a/specification/json/sections/cper-arm-processor.json
+++ b/specification/json/sections/cper-arm-processor.json
@@ -96,7 +96,16 @@
},
"multipleError": {
"type": "object",
- "$ref": "./common/cper-json-nvp.json"
+ "required": ["type", "value"],
+ "additionalProperties": false,
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "value": {
+ "type": "integer"
+ }
+ }
},
"flags": {
"type": "object",
diff --git a/specification/json/sections/cper-unknown.json b/specification/json/sections/cper-unknown.json
new file mode 100644
index 0000000..ea8c8f0
--- /dev/null
+++ b/specification/json/sections/cper-unknown.json
@@ -0,0 +1,12 @@
+{
+ "$id": "cper-json-unknown-section",
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "type": "object",
+ "required": ["data"],
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "type": "string"
+ }
+ }
+}
\ No newline at end of file