-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Update OpenAPI Generator to v5.3.0 #1589
Comments
@palnabarun It also needs kubernetes-client/gen#208, when I tested with openapi-generator v5.3.0. actually I would like you to support openapi-generator v5.3.1, for #1579, which is expected to be released in near future. |
When I tested with openapi-generator v5.3.0, I found that I found there are lots of patches(B) against generated codes(A). so, one of the solutions is: fork openapi-generator and apply patches to forked repository. To change code generation, It just needs to modify https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources/python/* those files are mustache based, but most of part is usual python code. openapi-generator also provides the way to use proprietary template with their official logic by 'generate -t' option as below.
dir_myTemplate=/my-openapi-generator/modules/openapi-generator/src/main/resources/python
docker run -v ${dir_myTemplate}:/myTemplate openapi-generator:v5.3.0 generate -t /myTemplate .... |
/help @itaru2622 Are you willing to drive the upgrade? cc @roycaihw |
@roycaihw: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@roycaihw You made me so suprised :-) It is better to note that openapi-generator's bump speed is quite fast as described below. https://github.com/OpenAPITools/openapi-generator/milestones |
One of the interesting things I think was introduced in OpenAPI Generator 5 was improved validation of types, for example the enum type of |
@idsvandermolen yes, there are some improvement in openapi-generator. unfortunately, to get benefit of those improvements on validation, it needs to update openapi defenition which is managed by server side at https://github.com/kubernetes/kubernetes/blob/master/api/openapi-spec/swagger.json it may take to be adjusted. |
true, but I noticed for example the upstream (I did see the "same" |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What is the feature and why do you need it:
OpenAPI Generator has got some improvements that we should pull in. Doing that will resolve issues like #859, #1131.
Risks
There have a lot!! of changes since v4.3.0. We would need to go through most of those changes through the release notes and see if anything can break the client.
Describe the solution you'd like to see:
Update OpenAPI Generator to v5.3.0 in https://github.com/kubernetes-client/gen/blob/a3aef4de7a1d5dab72021aa282fffd8bc8a022ca/openapi/python.sh#L48
The text was updated successfully, but these errors were encountered: