-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Kubernetes v1.json generates java client that won't compile. Any type mapping may be missing. #2347
Comments
Can you please point to the kubernetes json document that you're loading? Looks like it's local to your machine |
@ieb I believe you're using https://github.com/kubernetes/kubernetes/blob/master/api/swagger-spec/v1.json That's a known issue with Kubernetes: kubernetes/kubernetes#4700. To workaround the issue, please replace "any" with "object". Ref: #997 |
@wing328 thank you. Thanks for finding the Kubernetes issue, I failed, searching for "Any" generates lots of results. |
@ieb no problem. I also suggested in kubernetes/kubernetes#4700 to replace "any" with "object" so that others won't encounter the compilation error moving forward. |
Automatic merge from submit-queue Updating go-restful to generate "type":"object" instead of "type":"any" in swagger-spec (breaks kubectl 1.1) Updating go-restful to include emicklei/go-restful#270 (replacing type "any" by type "object". Ref swagger-api/swagger-codegen#2347 on why we want to do that) Ref #4700 (comment) First commit generated using: ``` godep restore go get -u github.com/emicklei/go-restful godep update github.com/emicklei/go-restful ``` Second commit generated by running ``` ./hack/update-swagger-spec.sh ``` Third commit generated by running: ``` ./hack/update-api-reference-docs.sh ``` cc @kubernetes/sig-api-machinery @bgrant0607
using the latest code from master and doing the following
results in a few 100 compile errors of the form
V1ObjectMeta.java:[7,30] is
io.swagger.client.model.Any.java was not generated.
Is the type "any" missing from the Java client generator, or is there something else I need to do when generating the client ?
I could not find a duplicate open or closed bug and looking at the current code there does not appear to be a type mapping for "any".
The text was updated successfully, but these errors were encountered: