Skip to content
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

Kubevela OpenAPI/Swagger client generation failure #713

Closed
h7kanna opened this issue Mar 22, 2023 · 1 comment · Fixed by #891
Closed

Kubevela OpenAPI/Swagger client generation failure #713

h7kanna opened this issue Mar 22, 2023 · 1 comment · Fixed by #891
Labels
kind/bug Something isn't working

Comments

@h7kanna
Copy link

h7kanna commented Mar 22, 2023

Describe the bug

Tried the main branch as the OpenAPI spec was fixed for conformance.
Generation was almost successful with one minor failure.

I am trying to generate a Rust client.
https://openapi-generator.tech/docs/generators/rust/

It fails because of a duplicate field 'runtime_cluster' here.
https://github.com/kubevela/velaux/blob/main/docs/apidoc/swagger.json#L8210

Not sure why the field is declared multiple times.

To Reproduce
openapi-generator generate -i ./spec/kubevela.yaml -g rust -o .

Expected behavior

Screenshots

KubeVela Version

Additional context

@h7kanna h7kanna added the kind/bug Something isn't working label Mar 22, 2023
@h7kanna
Copy link
Author

h7kanna commented Mar 22, 2023

https://github.com/h7kanna/kubevela-client-rs

iambocai pushed a commit to iambocai/velaux that referenced this issue Nov 21, 2023
Signed-off-by: 上郡 <shangjun.csb@alibaba-inc.com>
iambocai pushed a commit to iambocai/velaux that referenced this issue Nov 22, 2023
* 'feature/app_publish_version' of github.com:iambocai/velaux:
  fix: dryrun annotations fix
  fix: add annotations on update
  fix kubevela#713: duplicate field 'runtime_cluster' in swagger.json
  feat(apidoc): Add swagger-3.0.json
  feat(oam_application): Support specifying publishVersion when creating or updating oam applications
@iambocai iambocai mentioned this issue Nov 24, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant