Add additionalProperties=false
Change-Id: Iaec16b61ae8ec24c2013a310bf6a8d3a10e1f571
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/specification/json/common/cper-json-error-status.json b/specification/json/common/cper-json-error-status.json
index 592354f..d46d771 100644
--- a/specification/json/common/cper-json-error-status.json
+++ b/specification/json/common/cper-json-error-status.json
@@ -18,6 +18,7 @@
"type": "object",
"description": "Encoded value for the Error_Type",
"required": ["name", "value"],
+ "additionalProperties": false,
"properties": {
"name": {
"type": "string"
diff --git a/specification/json/cper-json-header.json b/specification/json/cper-json-header.json
index d031d2f..54b8764 100644
--- a/specification/json/cper-json-header.json
+++ b/specification/json/cper-json-header.json
@@ -20,6 +20,7 @@
"type": "object",
"description": "This is a 2-byte field representing a major and minor version number for the error record definition in BCD format. ",
"required": ["major", "minor"],
+ "additionalProperties": false,
"properties": {
"major": {
"type": "integer",
@@ -40,6 +41,7 @@
"type": "object",
"description": "Indicates the severity of the error condition. The severity of the error record corresponds to the most severe error section.",
"required": ["name", "code"],
+ "additionalProperties": false,
"properties": {
"name": {
"type": "string"
@@ -79,6 +81,7 @@
"type": "object",
"description": "This field holds a pre-assigned GUID value indicating the record association with an error event notification type.",
"required": ["guid", "type"],
+ "additionalProperties": false,
"properties": {
"guid": {
"type": "string",
diff --git a/specification/json/cper-json-section-descriptor.json b/specification/json/cper-json-section-descriptor.json
index d9c101c..878efe1 100644
--- a/specification/json/cper-json-section-descriptor.json
+++ b/specification/json/cper-json-section-descriptor.json
@@ -25,6 +25,7 @@
"type": "object",
"description": "This is a 2-byte field representing a major and minor version number for the error record definition in BCD format.",
"required": ["major", "minor"],
+ "additionalProperties": false,
"properties": {
"major": {
"type": "integer",
@@ -38,6 +39,7 @@
},
"flags": {
"type": "object",
+ "additionalProperties": false,
"required": [
"primary",
"containmentWarning",
@@ -87,6 +89,7 @@
"type": "object",
"description": "This field holds a pre-assigned GUID value indicating that it is a section of a particular error.",
"required": ["data", "type"],
+ "additionalProperties": false,
"properties": {
"data": {
"type": "string",
@@ -105,6 +108,7 @@
"type": "object",
"description": "This field indicates the severity associated with the error section.",
"required": ["code", "name"],
+ "additionalProperties": false,
"properties": {
"code": {
"type": "integer",
diff --git a/specification/json/cper-json-section-log.json b/specification/json/cper-json-section-log.json
index d8d9239..225e3e6 100644
--- a/specification/json/cper-json-section-log.json
+++ b/specification/json/cper-json-section-log.json
@@ -13,6 +13,7 @@
"type": "object",
"minProperties": 1,
"maxProperties": 1,
+ "additionalProperties": false,
"properties": {
"GenericProcessor": {
"$ref": "./sections/cper-generic-processor.json"
diff --git a/specification/json/sections/cper-arm-processor.json b/specification/json/sections/cper-arm-processor.json
index 50895f9..d9e4cb1 100644
--- a/specification/json/sections/cper-arm-processor.json
+++ b/specification/json/sections/cper-arm-processor.json
@@ -19,6 +19,7 @@
},
"errorAffinity": {
"type": "object",
+ "additionalProperties": false,
"description": "For errors that can be attributed to a specific affinity level, this field defines the affinity level at which the error was produced, detected, and/or consumed",
"required": ["value", "type"],
"properties": {
@@ -78,6 +79,7 @@
},
"flags": {
"type": "object",
+ "additionalProperties": false,
"required": [
"firstErrorCaptured",
"lastErrorCaptured",
@@ -101,143 +103,119 @@
},
"errorInformation": {
"type": "object",
- "oneOf": [
- {
- "$id": "cper-json-cacheerror-section",
+ "additionalProperties": false,
+ "minProperties": 1,
+ "maxProperties": 1,
+ "properties": {
+ "cacheError": {
"type": "object",
- "required": ["cacheError"],
+ "required": [],
+ "additionalProperties": false,
"properties": {
- "cacheError": {
+ "transactionType": {
"type": "object",
- "required": [],
- "additionalProperties": false,
- "properties": {
- "transactionType": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "operation": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "level": {
- "type": "integer"
- },
- "processorContextCorrupt": {
- "type": "boolean"
- },
- "corrected": {
- "type": "boolean"
- },
- "precisePC": {
- "type": "boolean"
- },
- "restartablePC": {
- "type": "boolean"
- }
- }
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "operation": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "level": {
+ "type": "integer"
+ },
+ "processorContextCorrupt": {
+ "type": "boolean"
+ },
+ "corrected": {
+ "type": "boolean"
+ },
+ "precisePC": {
+ "type": "boolean"
+ },
+ "restartablePC": {
+ "type": "boolean"
}
}
},
- {
- "$id": "cper-json-tlberror-section",
+ "tlbError": {
"type": "object",
- "required": ["tlbError"],
+ "required": [],
+ "additionalProperties": false,
"properties": {
- "tlbError": {
+ "transactionType": {
"type": "object",
- "required": [],
- "additionalProperties": false,
- "properties": {
- "transactionType": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "operation": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "level": {
- "type": "integer"
- },
- "processorContextCorrupt": {
- "type": "boolean"
- },
- "corrected": {
- "type": "boolean"
- },
- "precisePC": {
- "type": "boolean"
- },
- "restartablePC": {
- "type": "boolean"
- }
- }
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "operation": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "level": {
+ "type": "integer"
+ },
+ "processorContextCorrupt": {
+ "type": "boolean"
+ },
+ "corrected": {
+ "type": "boolean"
+ },
+ "precisePC": {
+ "type": "boolean"
+ },
+ "restartablePC": {
+ "type": "boolean"
}
}
},
- {
- "$id": "cper-json-buserror-section",
+ "busError": {
"type": "object",
- "required": ["busError"],
+ "required": [],
+ "additionalProperties": false,
"properties": {
- "busError": {
+ "transactionType": {
"type": "object",
- "required": [
- "timedOut",
- "participationType",
- "addressSpace",
- "memoryAttributes",
- "accessMode"
- ],
- "additionalProperties": false,
- "properties": {
- "transactionType": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "operation": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "level": {
- "type": "integer"
- },
- "processorContextCorrupt": {
- "type": "boolean"
- },
- "corrected": {
- "type": "boolean"
- },
- "precisePC": {
- "type": "boolean"
- },
- "restartablePC": {
- "type": "boolean"
- },
- "timedOut": {
- "type": "boolean"
- },
- "participationType": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "addressSpace": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "accessMode": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "memoryAttributes": {
- "type": "integer"
- }
- }
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "operation": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "level": {
+ "type": "integer"
+ },
+ "processorContextCorrupt": {
+ "type": "boolean"
+ },
+ "corrected": {
+ "type": "boolean"
+ },
+ "precisePC": {
+ "type": "boolean"
+ },
+ "restartablePC": {
+ "type": "boolean"
+ },
+ "timedOut": {
+ "type": "boolean"
+ },
+ "participationType": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "addressSpace": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "accessMode": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "memoryAttributes": {
+ "type": "integer"
}
}
}
- ]
+ }
},
"virtualFaultAddress": {
"type": "integer"
@@ -277,6 +255,7 @@
{
"$id": "cper-json-registerarray0",
"type": "object",
+ "additionalProperties": false,
"required": [
"r1",
"r2",
@@ -295,27 +274,60 @@
"r15_pc"
],
"properties": {
- "r0": { "type": "integer" },
- "r1": { "type": "integer" },
- "r2": { "type": "integer" },
- "r3": { "type": "integer" },
- "r4": { "type": "integer" },
- "r5": { "type": "integer" },
- "r6": { "type": "integer" },
- "r7": { "type": "integer" },
- "r8": { "type": "integer" },
- "r9": { "type": "integer" },
- "r10": { "type": "integer" },
- "r11": { "type": "integer" },
- "r12": { "type": "integer" },
- "r13_sp": { "type": "integer" },
- "r14_lr": { "type": "integer" },
- "r15_pc": { "type": "integer" }
+ "r0": {
+ "type": "integer"
+ },
+ "r1": {
+ "type": "integer"
+ },
+ "r2": {
+ "type": "integer"
+ },
+ "r3": {
+ "type": "integer"
+ },
+ "r4": {
+ "type": "integer"
+ },
+ "r5": {
+ "type": "integer"
+ },
+ "r6": {
+ "type": "integer"
+ },
+ "r7": {
+ "type": "integer"
+ },
+ "r8": {
+ "type": "integer"
+ },
+ "r9": {
+ "type": "integer"
+ },
+ "r10": {
+ "type": "integer"
+ },
+ "r11": {
+ "type": "integer"
+ },
+ "r12": {
+ "type": "integer"
+ },
+ "r13_sp": {
+ "type": "integer"
+ },
+ "r14_lr": {
+ "type": "integer"
+ },
+ "r15_pc": {
+ "type": "integer"
+ }
}
},
{
"$id": "cper-json-registerarray1",
"type": "object",
+ "additionalProperties": false,
"required": [
"dfar",
"dfsr",
@@ -343,35 +355,84 @@
"dacr"
],
"properties": {
- "dfar": { "type": "integer" },
- "dfsr": { "type": "integer" },
- "ifar": { "type": "integer" },
- "isr": { "type": "integer" },
- "mair0": { "type": "integer" },
- "mair1": { "type": "integer" },
- "midr": { "type": "integer" },
- "mpidr": { "type": "integer" },
- "nmrr": { "type": "integer" },
- "prrr": { "type": "integer" },
- "sctlr_ns": { "type": "integer" },
- "spsr": { "type": "integer" },
- "spsr_abt": { "type": "integer" },
- "spsr_fiq": { "type": "integer" },
- "spsr_irq": { "type": "integer" },
- "spsr_svc": { "type": "integer" },
- "spsr_und": { "type": "integer" },
- "tpidrprw": { "type": "integer" },
- "tpidruro": { "type": "integer" },
- "tpidrurw": { "type": "integer" },
- "ttbcr": { "type": "integer" },
- "ttbr0": { "type": "integer" },
- "ttbr1": { "type": "integer" },
- "dacr": { "type": "integer" }
+ "dfar": {
+ "type": "integer"
+ },
+ "dfsr": {
+ "type": "integer"
+ },
+ "ifar": {
+ "type": "integer"
+ },
+ "isr": {
+ "type": "integer"
+ },
+ "mair0": {
+ "type": "integer"
+ },
+ "mair1": {
+ "type": "integer"
+ },
+ "midr": {
+ "type": "integer"
+ },
+ "mpidr": {
+ "type": "integer"
+ },
+ "nmrr": {
+ "type": "integer"
+ },
+ "prrr": {
+ "type": "integer"
+ },
+ "sctlr_ns": {
+ "type": "integer"
+ },
+ "spsr": {
+ "type": "integer"
+ },
+ "spsr_abt": {
+ "type": "integer"
+ },
+ "spsr_fiq": {
+ "type": "integer"
+ },
+ "spsr_irq": {
+ "type": "integer"
+ },
+ "spsr_svc": {
+ "type": "integer"
+ },
+ "spsr_und": {
+ "type": "integer"
+ },
+ "tpidrprw": {
+ "type": "integer"
+ },
+ "tpidruro": {
+ "type": "integer"
+ },
+ "tpidrurw": {
+ "type": "integer"
+ },
+ "ttbcr": {
+ "type": "integer"
+ },
+ "ttbr0": {
+ "type": "integer"
+ },
+ "ttbr1": {
+ "type": "integer"
+ },
+ "dacr": {
+ "type": "integer"
+ }
}
},
{
"$id": "cper-json-registerarray2",
"type": "object",
+ "additionalProperties": false,
"required": [
"elr_hyp",
"hamair0",
@@ -391,36 +452,74 @@
"dacr32_el2"
],
"properties": {
- "elr_hyp": { "type": "integer" },
- "hamair0": { "type": "integer" },
- "hamair1": { "type": "integer" },
- "hcr": { "type": "integer" },
- "hcr2": { "type": "integer" },
- "hdfar": { "type": "integer" },
- "hifar": { "type": "integer" },
- "hpfar": { "type": "integer" },
- "hsr": { "type": "integer" },
- "htcr": { "type": "integer" },
- "htpidr": { "type": "integer" },
- "httbr": { "type": "integer" },
- "spsr_hyp": { "type": "integer" },
- "vtcr": { "type": "integer" },
- "vttbr": { "type": "integer" },
- "dacr32_el2": { "type": "integer" }
+ "elr_hyp": {
+ "type": "integer"
+ },
+ "hamair0": {
+ "type": "integer"
+ },
+ "hamair1": {
+ "type": "integer"
+ },
+ "hcr": {
+ "type": "integer"
+ },
+ "hcr2": {
+ "type": "integer"
+ },
+ "hdfar": {
+ "type": "integer"
+ },
+ "hifar": {
+ "type": "integer"
+ },
+ "hpfar": {
+ "type": "integer"
+ },
+ "hsr": {
+ "type": "integer"
+ },
+ "htcr": {
+ "type": "integer"
+ },
+ "htpidr": {
+ "type": "integer"
+ },
+ "httbr": {
+ "type": "integer"
+ },
+ "spsr_hyp": {
+ "type": "integer"
+ },
+ "vtcr": {
+ "type": "integer"
+ },
+ "vttbr": {
+ "type": "integer"
+ },
+ "dacr32_el2": {
+ "type": "integer"
+ }
}
},
{
"$id": "cper-json-registerarray3",
"type": "object",
+ "additionalProperties": false,
"required": ["sctlr_s", "spsr_mon"],
"properties": {
- "sctlr_s": { "type": "integer" },
- "spsr_mon": { "type": "integer" }
+ "sctlr_s": {
+ "type": "integer"
+ },
+ "spsr_mon": {
+ "type": "integer"
+ }
}
},
{
"$id": "cper-json-registerarray4",
"type": "object",
+ "additionalProperties": false,
"required": [
"x0",
"x1",
@@ -456,43 +555,108 @@
"sp"
],
"properties": {
- "x0": { "type": "integer" },
- "x1": { "type": "integer" },
- "x2": { "type": "integer" },
- "x3": { "type": "integer" },
- "x4": { "type": "integer" },
- "x5": { "type": "integer" },
- "x6": { "type": "integer" },
- "x7": { "type": "integer" },
- "x8": { "type": "integer" },
- "x9": { "type": "integer" },
- "x10": { "type": "integer" },
- "x11": { "type": "integer" },
- "x12": { "type": "integer" },
- "x13": { "type": "integer" },
- "x14": { "type": "integer" },
- "x15": { "type": "integer" },
- "x16": { "type": "integer" },
- "x17": { "type": "integer" },
- "x18": { "type": "integer" },
- "x19": { "type": "integer" },
- "x20": { "type": "integer" },
- "x21": { "type": "integer" },
- "x22": { "type": "integer" },
- "x23": { "type": "integer" },
- "x24": { "type": "integer" },
- "x25": { "type": "integer" },
- "x26": { "type": "integer" },
- "x27": { "type": "integer" },
- "x28": { "type": "integer" },
- "x29": { "type": "integer" },
- "x30": { "type": "integer" },
- "sp": { "type": "integer" }
+ "x0": {
+ "type": "integer"
+ },
+ "x1": {
+ "type": "integer"
+ },
+ "x2": {
+ "type": "integer"
+ },
+ "x3": {
+ "type": "integer"
+ },
+ "x4": {
+ "type": "integer"
+ },
+ "x5": {
+ "type": "integer"
+ },
+ "x6": {
+ "type": "integer"
+ },
+ "x7": {
+ "type": "integer"
+ },
+ "x8": {
+ "type": "integer"
+ },
+ "x9": {
+ "type": "integer"
+ },
+ "x10": {
+ "type": "integer"
+ },
+ "x11": {
+ "type": "integer"
+ },
+ "x12": {
+ "type": "integer"
+ },
+ "x13": {
+ "type": "integer"
+ },
+ "x14": {
+ "type": "integer"
+ },
+ "x15": {
+ "type": "integer"
+ },
+ "x16": {
+ "type": "integer"
+ },
+ "x17": {
+ "type": "integer"
+ },
+ "x18": {
+ "type": "integer"
+ },
+ "x19": {
+ "type": "integer"
+ },
+ "x20": {
+ "type": "integer"
+ },
+ "x21": {
+ "type": "integer"
+ },
+ "x22": {
+ "type": "integer"
+ },
+ "x23": {
+ "type": "integer"
+ },
+ "x24": {
+ "type": "integer"
+ },
+ "x25": {
+ "type": "integer"
+ },
+ "x26": {
+ "type": "integer"
+ },
+ "x27": {
+ "type": "integer"
+ },
+ "x28": {
+ "type": "integer"
+ },
+ "x29": {
+ "type": "integer"
+ },
+ "x30": {
+ "type": "integer"
+ },
+ "sp": {
+ "type": "integer"
+ }
}
},
{
"$id": "cper-json-registerarray5",
"type": "object",
+ "additionalProperties": false,
"required": [
"elr_el1",
"esr_el1",
@@ -513,28 +677,63 @@
"ttbr1_el1"
],
"properties": {
- "elr_el1": { "type": "integer" },
- "esr_el1": { "type": "integer" },
- "far_el1": { "type": "integer" },
- "isr_el1": { "type": "integer" },
- "mair_el1": { "type": "integer" },
- "midr_el1": { "type": "integer" },
- "mpidr_el1": { "type": "integer" },
- "sctlr_el1": { "type": "integer" },
- "sp_el0": { "type": "integer" },
- "sp_el1": { "type": "integer" },
- "spsr_el1": { "type": "integer" },
- "tcr_el1": { "type": "integer" },
- "tpidr_el0": { "type": "integer" },
- "tpidr_el1": { "type": "integer" },
- "tpidrro_el0": { "type": "integer" },
- "ttbr0_el1": { "type": "integer" },
- "ttbr1_el1": { "type": "integer" }
+ "elr_el1": {
+ "type": "integer"
+ },
+ "esr_el1": {
+ "type": "integer"
+ },
+ "far_el1": {
+ "type": "integer"
+ },
+ "isr_el1": {
+ "type": "integer"
+ },
+ "mair_el1": {
+ "type": "integer"
+ },
+ "midr_el1": {
+ "type": "integer"
+ },
+ "mpidr_el1": {
+ "type": "integer"
+ },
+ "sctlr_el1": {
+ "type": "integer"
+ },
+ "sp_el0": {
+ "type": "integer"
+ },
+ "sp_el1": {
+ "type": "integer"
+ },
+ "spsr_el1": {
+ "type": "integer"
+ },
+ "tcr_el1": {
+ "type": "integer"
+ },
+ "tpidr_el0": {
+ "type": "integer"
+ },
+ "tpidr_el1": {
+ "type": "integer"
+ },
+ "tpidrro_el0": {
+ "type": "integer"
+ },
+ "ttbr0_el1": {
+ "type": "integer"
+ },
+ "ttbr1_el1": {
+ "type": "integer"
+ }
}
},
{
"$id": "cper-json-registerarray6",
"type": "object",
+ "additionalProperties": false,
"required": [
"elr_el2",
"esr_el2",
@@ -553,26 +752,57 @@
"vttbr_el2"
],
"properties": {
- "elr_el2": { "type": "integer" },
- "esr_el2": { "type": "integer" },
- "far_el2": { "type": "integer" },
- "hacr_el2": { "type": "integer" },
- "hcr_el2": { "type": "integer" },
- "hpfar_el2": { "type": "integer" },
- "mair_el2": { "type": "integer" },
- "sctlr_el2": { "type": "integer" },
- "sp_el2": { "type": "integer" },
- "spsr_el2": { "type": "integer" },
- "tcr_el2": { "type": "integer" },
- "tpidr_el2": { "type": "integer" },
- "ttbr0_el2": { "type": "integer" },
- "vtcr_el2": { "type": "integer" },
- "vttbr_el2": { "type": "integer" }
+ "elr_el2": {
+ "type": "integer"
+ },
+ "esr_el2": {
+ "type": "integer"
+ },
+ "far_el2": {
+ "type": "integer"
+ },
+ "hacr_el2": {
+ "type": "integer"
+ },
+ "hcr_el2": {
+ "type": "integer"
+ },
+ "hpfar_el2": {
+ "type": "integer"
+ },
+ "mair_el2": {
+ "type": "integer"
+ },
+ "sctlr_el2": {
+ "type": "integer"
+ },
+ "sp_el2": {
+ "type": "integer"
+ },
+ "spsr_el2": {
+ "type": "integer"
+ },
+ "tcr_el2": {
+ "type": "integer"
+ },
+ "tpidr_el2": {
+ "type": "integer"
+ },
+ "ttbr0_el2": {
+ "type": "integer"
+ },
+ "vtcr_el2": {
+ "type": "integer"
+ },
+ "vttbr_el2": {
+ "type": "integer"
+ }
}
},
{
"$id": "cper-json-registerarray7",
"type": "object",
+ "additionalProperties": false,
"required": [
"elr_el3",
"esr_el3",
@@ -586,16 +816,36 @@
"ttbr0_el3"
],
"properties": {
- "elr_el3": { "type": "integer" },
- "esr_el3": { "type": "integer" },
- "far_el3": { "type": "integer" },
- "mair_el3": { "type": "integer" },
- "sctlr_el3": { "type": "integer" },
- "sp_el3": { "type": "integer" },
- "spsr_el3": { "type": "integer" },
- "tcr_el3": { "type": "integer" },
- "tpidr_el3": { "type": "integer" },
- "ttbr0_el3": { "type": "integer" }
+ "elr_el3": {
+ "type": "integer"
+ },
+ "esr_el3": {
+ "type": "integer"
+ },
+ "far_el3": {
+ "type": "integer"
+ },
+ "mair_el3": {
+ "type": "integer"
+ },
+ "sctlr_el3": {
+ "type": "integer"
+ },
+ "sp_el3": {
+ "type": "integer"
+ },
+ "spsr_el3": {
+ "type": "integer"
+ },
+ "tcr_el3": {
+ "type": "integer"
+ },
+ "tpidr_el3": {
+ "type": "integer"
+ },
+ "ttbr0_el3": {
+ "type": "integer"
+ }
}
},
{
@@ -614,11 +864,21 @@
"o0"
],
"properties": {
- "op2": { "type": "integer" },
- "crm": { "type": "integer" },
- "crn": { "type": "integer" },
- "op1": { "type": "integer" },
- "o0": { "type": "integer" }
+ "op2": {
+ "type": "integer"
+ },
+ "crm": {
+ "type": "integer"
+ },
+ "crn": {
+ "type": "integer"
+ },
+ "op1": {
+ "type": "integer"
+ },
+ "o0": {
+ "type": "integer"
+ }
}
},
"value": {
@@ -629,6 +889,7 @@
{
"$id": "cper-json-registerarray9",
"type": "object",
+ "additionalProperties": false,
"required": ["data"],
"properties": {
"data": {
diff --git a/specification/json/sections/cper-cxl-component.json b/specification/json/sections/cper-cxl-component.json
index fbefeef..e7c2990 100644
--- a/specification/json/sections/cper-cxl-component.json
+++ b/specification/json/sections/cper-cxl-component.json
@@ -11,6 +11,7 @@
"deviceID": {
"type": "object",
"description": "Provides devices specific identifies.",
+ "additionalProperties": false,
"required": [
"vendorID",
"deviceID",
@@ -49,6 +50,7 @@
},
"cxlComponentEventLog": {
"type": "object",
+ "additionalProperties": false,
"required": ["data"],
"properties": {
"data": {
diff --git a/specification/json/sections/cper-cxl-protocol.json b/specification/json/sections/cper-cxl-protocol.json
index 82653c6..a216b01 100644
--- a/specification/json/sections/cper-cxl-protocol.json
+++ b/specification/json/sections/cper-cxl-protocol.json
@@ -17,6 +17,7 @@
{
"$id": "cper-json-cxlagentaddress0",
"type": "object",
+ "additionalProperties": false,
"required": [
"functionNumber",
"deviceNumber",
@@ -41,6 +42,7 @@
{
"$id": "cper-json-cxlagentaddress1",
"type": "object",
+ "additionalProperties": false,
"required": ["value"],
"properties": {
"value": {
@@ -53,6 +55,7 @@
"deviceID": {
"type": "object",
"description": "Provides devices specific identifies.",
+ "additionalProperties": false,
"required": [],
"properties": {
"vendorID": {
diff --git a/specification/json/sections/cper-generic-dmar.json b/specification/json/sections/cper-generic-dmar.json
index 2075b3b..0a121c9 100644
--- a/specification/json/sections/cper-generic-dmar.json
+++ b/specification/json/sections/cper-generic-dmar.json
@@ -24,6 +24,7 @@
"faultReason": {
"type": "object",
"required": ["value", "name"],
+ "additionalProperties": false,
"properties": {
"value": {
"type": "integer"
diff --git a/specification/json/sections/cper-generic-processor.json b/specification/json/sections/cper-generic-processor.json
index bc29a95..46b9298 100644
--- a/specification/json/sections/cper-generic-processor.json
+++ b/specification/json/sections/cper-generic-processor.json
@@ -27,6 +27,7 @@
},
"flags": {
"type": "object",
+ "additionalProperties": false,
"description": "Indicates additional information about the error",
"required": ["restartable", "preciseIP", "overflow", "corrected"],
"properties": {
diff --git a/specification/json/sections/cper-ia32x64-processor.json b/specification/json/sections/cper-ia32x64-processor.json
index fd9a13e..371e19f 100644
--- a/specification/json/sections/cper-ia32x64-processor.json
+++ b/specification/json/sections/cper-ia32x64-processor.json
@@ -46,6 +46,7 @@
"properties": {
"type": {
"type": "object",
+ "additionalProperties": false,
"required": ["guid", "name"],
"properties": {
"guid": {
diff --git a/specification/json/sections/cper-memory.json b/specification/json/sections/cper-memory.json
index 8b7179e..037ca26 100644
--- a/specification/json/sections/cper-memory.json
+++ b/specification/json/sections/cper-memory.json
@@ -17,6 +17,7 @@
{
"$id": "cper-json-bank0",
"type": "object",
+ "additionalProperties": false,
"required": ["value"],
"properties": {
"value": {
@@ -27,6 +28,7 @@
{
"$id": "cper-json-bank1",
"type": "object",
+ "additionalProperties": false,
"required": ["address", "group"],
"properties": {
"address": {
@@ -46,6 +48,7 @@
},
"extended": {
"type": "object",
+ "additionalProperties": false,
"required": ["rowBit16", "rowBit17"],
"properties": {
"rowBit16": {
diff --git a/specification/json/sections/cper-memory2.json b/specification/json/sections/cper-memory2.json
index 379e55a..d4b0fc7 100644
--- a/specification/json/sections/cper-memory2.json
+++ b/specification/json/sections/cper-memory2.json
@@ -17,6 +17,7 @@
{
"$id": "cper-json-bank0",
"type": "object",
+ "additionalProperties": false,
"required": ["value"],
"properties": {
"value": {
@@ -27,6 +28,7 @@
{
"$id": "cper-json-bank1",
"type": "object",
+ "additionalProperties": false,
"required": ["address", "group"],
"properties": {
"address": {
@@ -47,6 +49,7 @@
"status": {
"type": "object",
"description": "Memory error status information.",
+ "additionalProperties": false,
"required": ["value", "state"],
"properties": {
"value": {
diff --git a/specification/json/sections/cper-nvidia.json b/specification/json/sections/cper-nvidia.json
index 4ae4a40..ce36d47 100644
--- a/specification/json/sections/cper-nvidia.json
+++ b/specification/json/sections/cper-nvidia.json
@@ -3,7 +3,6 @@
"type": "object",
"description": "NVIDIA Processor Error Section",
"required": [
- "signature",
"errorType",
"errorInstance",
"severity",
@@ -29,6 +28,7 @@
"type": "object",
"description": "Internal severity for firmware tracking. Use CPER section severity.",
"required": ["code", "name"],
+ "additionalProperties": false,
"properties": {
"code": {
"type": "integer",
@@ -56,6 +56,7 @@
"description": "Address, value pairs for registers dumped during the error detection.",
"items": {
"type": "object",
+ "additionalProperties": false,
"required": ["address", "value"],
"properties": {
"address": {
diff --git a/specification/json/sections/cper-pci-component.json b/specification/json/sections/cper-pci-component.json
index 65f3489..7275003 100644
--- a/specification/json/sections/cper-pci-component.json
+++ b/specification/json/sections/cper-pci-component.json
@@ -13,6 +13,7 @@
"idInfo": {
"type": "object",
"description": "Identification Information",
+ "additionalProperties": false,
"required": [
"vendorID",
"deviceID",
diff --git a/specification/json/sections/cper-pcie.json b/specification/json/sections/cper-pcie.json
index 2c2d42e..2f2b23c 100644
--- a/specification/json/sections/cper-pcie.json
+++ b/specification/json/sections/cper-pcie.json
@@ -25,6 +25,7 @@
},
"commandStatus": {
"type": "object",
+ "additionalProperties": false,
"required": ["commandRegister", "statusRegister"],
"properties": {
"commandRegister": {
@@ -39,6 +40,7 @@
},
"deviceID": {
"type": "object",
+ "additionalProperties": false,
"description": "PCIe Root Port PCI/bridge PCI compatible device number and bus number information to uniquely identify the root port or bridge.",
"required": [
"vendorID",
@@ -91,6 +93,7 @@
},
"bridgeControlStatus": {
"type": "object",
+ "additionalProperties": false,
"required": ["secondaryStatusRegister", "controlRegister"],
"properties": {
"secondaryStatusRegister": {
@@ -105,6 +108,7 @@
},
"capabilityStructure": {
"type": "object",
+ "additionalProperties": false,
"description": "This feild reports either the PCIe 2.0 Capability structure",
"required": ["data"],
"properties": {
@@ -115,6 +119,7 @@
},
"aerInfo": {
"type": "object",
+ "additionalProperties": false,
"description": "PCIe Advanced Error Reporting Extended Capability Structure.",
"required": ["data"],
"properties": {
diff --git a/specification/json/sections/cper-vtd-dmar.json b/specification/json/sections/cper-vtd-dmar.json
index caa9d25..bb54c15 100644
--- a/specification/json/sections/cper-vtd-dmar.json
+++ b/specification/json/sections/cper-vtd-dmar.json
@@ -69,6 +69,7 @@
"addressType",
"type"
],
+ "additionalProperties": false,
"properties": {
"faultInformation": {
"type": "integer"
diff --git a/tests/meson.build b/tests/meson.build
index accce38..e86f26b 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -65,7 +65,7 @@
# Fuzzing only works on linux at this moment. osx clang doesn't have leak detector
is_darwin = host_machine.system().startswith('darwin')
if (cxx.get_id() == 'clang') and get_option('fuzz').allowed() and not is_darwin
- sanitize = ['fuzzer', 'address', 'leak']
+ sanitize = ['fuzzer']
fuzz_args = [
'-fsanitize=' + ','.join(sanitize),
'-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION',