From cc4f2856f376c163efb180876642a3215af84508 Mon Sep 17 00:00:00 2001 From: Alexander Matthiesen <53814939+alexander-matthiesen@users.noreply.github.com> Date: Thu, 17 Nov 2022 12:22:59 +0100 Subject: [PATCH] fix(ISSUE-130): Fixing group issue within file creation --- scripts/openapi2jsonschema.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/openapi2jsonschema.py b/scripts/openapi2jsonschema.py index 38d69a66..6dec089f 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"