Move to 2021.3
Update the script to point at 2021.3, change the path of the files since
they moved again, and run the script.
Since we have an exclude list, this only brings in new versions of
schemas bmcweb already uses.
Overview of 2021.3:
https://www.dmtf.org/sites/default/files/Redfish_Release_2021.3_Overview.pdf
Overall, the release wasn't huge.
IBM plans to use:
PCIeSlot to Processor
FabricAdapter to PCIeDevice
Tested: See new schemas. No new validator errors.
curl -k https://$bmc/redfish/v1/JsonSchemas/Certificate/Certificate.json
{
"$id": "http://redfish.dmtf.org/schemas/v1/Certificate.v1_5_0.json",
Change-Id: Idf28cb164d220b059dace91e352fee732bf0c842
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/scripts/update_schemas.py b/scripts/update_schemas.py
index 9b4c88f..903afb7 100755
--- a/scripts/update_schemas.py
+++ b/scripts/update_schemas.py
@@ -9,7 +9,7 @@
import xml.etree.ElementTree as ET
-VERSION = "DSP8010_2021.2"
+VERSION = "DSP8010_2021.3"
# To use a new schema, add to list and rerun tool
include_list = [
@@ -161,9 +161,9 @@
" Version=\"4.0\">\n")
for zip_filepath in zip_ref.namelist():
- if zip_filepath.startswith(VERSION + '/' + VERSION + '/csdl/') and \
+ if zip_filepath.startswith('csdl/') and \
(zip_filepath != VERSION + "/csdl/") and \
- (zip_filepath != VERSION + '/' + VERSION + "/csdl/"):
+ (zip_filepath != "csdl/"):
filename = os.path.basename(zip_filepath)
# filename looks like Zone_v1.xml
@@ -260,7 +260,7 @@
schema_files = {}
for zip_filepath in zip_ref.namelist():
- if zip_filepath.startswith(os.path.join(VERSION, VERSION, 'json-schema/')):
+ if zip_filepath.startswith(os.path.join('json-schema/')):
filename = os.path.basename(zip_filepath)
filenamesplit = filename.split(".")
@@ -281,7 +281,7 @@
for schema, version in schema_files.items():
basename = schema + "." + version + ".json"
- zip_filepath = os.path.join(VERSION, VERSION, "json-schema", basename)
+ zip_filepath = os.path.join("json-schema", basename)
schemadir = os.path.join(json_schema_path, schema)
os.makedirs(schemadir)
location_json = OrderedDict()