Redfish: fix warning in validator
The validator gives warnings like:
URI acquired ends in slash: /redfish/v1/JsonSchemas/Zone
These warnings don't actually result in warnings, because the trailing
slash has always been a question in the spec, but we might as well do it
correctly, even if most of the tools don't take an issue with it.
Tested:
Ran service validator, saw no new failures, and observed no errors
mentioned above.
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Change-Id: I184422d7a14838339253c945d7a0c91878093e17
diff --git a/scripts/update_schemas.py b/scripts/update_schemas.py
index dc73120..762f02f 100755
--- a/scripts/update_schemas.py
+++ b/scripts/update_schemas.py
@@ -147,7 +147,7 @@
schema_file.write(zip_ref.read(zip_filepath))
with open(os.path.join(json_schema_path, "index.json"), 'w') as index_file:
- members = [{"@odata.id": "/redfish/v1/JsonSchemas/" + schema + "/"}
+ members = [{"@odata.id": "/redfish/v1/JsonSchemas/" + schema}
for schema in schema_files]
members.sort(key=lambda x: x["@odata.id"])