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-memory.json b/specification/json/sections/cper-memory.json
index 52e1fe9..b57beee 100644
--- a/specification/json/sections/cper-memory.json
+++ b/specification/json/sections/cper-memory.json
@@ -1,28 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
- "required": [
- "errorStatus",
- "bank",
- "memoryErrorType",
- "extended",
- "physicalAddress",
- "physicalAddressHex",
- "physicalAddressMask",
- "node",
- "card",
- "moduleRank",
- "device",
- "row",
- "column",
- "bitPosition",
- "requestorID",
- "responderID",
- "targetID",
- "rankNumber",
- "cardSmbiosHandle",
- "moduleSmbiosHandle"
- ],
+ "required": [],
"additionalProperties": false,
"properties": {
"errorStatus": {