-
Notifications
You must be signed in to change notification settings - Fork 320
Python: Fix client generation #2797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @singhpk234 for the fix.
| # generate the management api client | ||
| docker run --rm \ | ||
| -v ${PWD}:/local openapitools/openapi-generator-cli generate \ | ||
| -v ${PWD}:/local openapitools/openapi-generator-cli:v7.9.0 generate \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could delete this part, now the python client will auto-generate all the client using the latest spec file upon build, so we do not need to run these manually anymore : )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. this happened with 7.13 (first breaking version as it needs 3.1.1). In this PR #2800, I bumped it to the latest working version. When running regtests via make, this will be done automatically (as part of polaris package install/build)
What changes were proposed in this pull request?
Fix for python client generation for regtests
Why are the changes needed?
unable to build client without this change, this force the open-api generator to a version which ignores example empty
Does this PR introduce any user-facing change?
No
How was this patch tested?
Error above is gone
CHANGELOG.md
May be not