PEL: Add min length to 2 msg reg fields
Change the minimum length to 8 for the Message and Description fields in
the Documentation section of the message registry as just a basic check
that they contain something valid.
The message registry is transformed into official documentation that
needs these fields filled in.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I0f7c247754a0460576337e61159b23fd02420cd4
diff --git a/extensions/openpower-pels/registry/schema/schema.json b/extensions/openpower-pels/registry/schema/schema.json
index d7cd5f7..1c405bf 100644
--- a/extensions/openpower-pels/registry/schema/schema.json
+++ b/extensions/openpower-pels/registry/schema/schema.json
@@ -340,13 +340,15 @@
"docDescription":
{
"description": "This is a higher level description of the error. It is required by the Redfish schema to generate a Redfish message entry, but is not used in Redfish or PEL output.",
- "type": "string"
+ "type": "string",
+ "minLength": 8
},
"docMessage":
{
"description": "The error message. This will show up in parsed PELs, and in the Redfish event logs. It can contain placeholders for numeric values using %1, %2, etc, that come from the SRC words 6-9 as defined by the MessageArgSources property.",
"type": "string",
+ "minLength": 8,
"examples": [
{"Message": "The code update from level %1 to %2 failed" }
]