Allow null in some cases
There are several section arrays in the code that might fail to parse.
When that happens, we'd need to represent the failed section as "null"
in the json response, to make sure that we don't reindex anything, and
that the failing section is represented.
Change-Id: Ie2811b59f5110b5f4aa43918b8f6207c0f6f16ef
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/specification/json/cper-json-full-log.json b/specification/json/cper-json-full-log.json
index ac27659..9162547 100644
--- a/specification/json/cper-json-full-log.json
+++ b/specification/json/cper-json-full-log.json
@@ -12,14 +12,14 @@
"sectionDescriptors": {
"type": "array",
"items": {
- "type": "object",
+ "type": ["object", "null"],
"$ref": "./cper-json-section-descriptor.json"
}
},
"sections": {
"type": "array",
"items": {
- "type": "object",
+ "type": ["object", "null"],
"minProperties": 1,
"maxProperties": 1,
"additionalProperties": false,