fix(ISSUE-130): Fixing group issue within file creation

This commit is contained in:
Alexander Matthiesen 2022-11-17 12:22:59 +01:00 committed by GitHub
parent 3cb76bc5e6
commit cc4f2856f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@ if __name__ == "__main__":
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 @@ if __name__ == "__main__":
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 @@ if __name__ == "__main__":
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"