Parse number types from the base registry
Rather than maintaining a list of arguments that are numbers (which is
error prone), update the script to just trust that the few parameters
labeled in Redfish as numbers should in fact show up in the API as
numbers.
Functionally this changes the APIs for only a few error messages, only
one of which (StringValueTooShort) is used and that usage was added
recently.
Tested: SRV passes.
Change-Id: I580523ecc0263688738bcb7f7925913e40e2a113
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/scripts/parse_registries.py b/scripts/parse_registries.py
index 6f97bc1..7b315a8 100755
--- a/scripts/parse_registries.py
+++ b/scripts/parse_registries.py
@@ -312,12 +312,6 @@
"QueryParameterValueFormatError": [1],
"QueryParameterValueTypeError": [1],
},
- "uint64_t": {
- "ArraySizeTooLong": [2],
- "InvalidIndex": [1],
- "StringValueTooLong": [2],
- "TaskProgressChanged": [2],
- },
}
out = ""
@@ -326,6 +320,8 @@
for arg_index, arg in enumerate(entry.get("ParamTypes", [])):
arg_index += 1
typename = "std::string_view"
+ if arg == "number":
+ typename = "uint64_t"
for typestring, entries in arg_nonstring_types.items():
if arg_index in entries.get(entry_id, []):
typename = typestring