diff --git a/scripts/openapi2jsonschema.py b/scripts/openapi2jsonschema.py index 38d69a6..6dec089 100755 --- a/scripts/openapi2jsonschema.py +++ b/scripts/openapi2jsonschema.py @@ -151,7 +151,7 @@ def construct_value(load, node): if "schema" in version and "openAPIV3Schema" in version["schema"]: filename = filename_format.format( kind=y["spec"]["names"]["kind"], - group=y["spec"]["group"].split(".")[0], + group=y["spec"]["group"], version=version["name"], ).lower() + ".json" @@ -160,7 +160,7 @@ def construct_value(load, node): elif "validation" in y["spec"] and "openAPIV3Schema" in y["spec"]["validation"]: filename = filename_format.format( kind=y["spec"]["names"]["kind"], - group=y["spec"]["group"].split(".")[0], + group=y["spec"]["group"], version=version["name"], ).lower() + ".json" @@ -169,7 +169,7 @@ def construct_value(load, node): elif "spec" in y and "validation" in y["spec"] and "openAPIV3Schema" in y["spec"]["validation"]: filename = filename_format.format( kind=y["spec"]["names"]["kind"], - group=y["spec"]["group"].split(".")[0], + group=y["spec"]["group"], version=y["spec"]["version"], ).lower() + ".json"