Fix required properties in schemas
With invalid properties not showing up in the output, they are not
required in the schema anymore.
Note: UTs test with all properties enabled in the cper-generator.
Tested by running example cpers against schemas
Change-Id: I54dcda2ae00587e4a7d59e0365eb41ac1669ba46
Signed-off-by: Aushim Nagarkatti <anagarkatti@nvidia.com>
diff --git a/specification/json/sections/cper-generic-processor.json b/specification/json/sections/cper-generic-processor.json
index 6c6e0c2..bc29a95 100644
--- a/specification/json/sections/cper-generic-processor.json
+++ b/specification/json/sections/cper-generic-processor.json
@@ -2,21 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Generic Processor Error Section",
- "required": [
- "processorType",
- "processorISA",
- "errorType",
- "operation",
- "flags",
- "level",
- "cpuVersionInfo",
- "cpuBrandString",
- "processorID",
- "targetAddress",
- "requestorID",
- "responderID",
- "instructionIP"
- ],
+ "required": [],
"additionalProperties": false,
"properties": {
"processorType": {