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
Java codegen fails to create an Any class for swagger specs with an "any" type #997
Comments
According to swagger spec, there's no type named "any". |
|
@elibixby According to swagger spec 1.2, there's no type named "any" either. Do you expect "any" to be a class named "Any" without any properties in the generated code? |
@elibixby I think it's a known issue as documented by the owner of |
@wing328 Thanks! I missed that issue I guess! |
@elibixby As a workaround, you can do a find & replace for "any" with "object". I can generate code without exception using this approach. |
@wing328 Thanks, yeah I ended up replacing it with Map<String,String> and it seems to work fine. |
As an example you can run codegen on https://github.com/GoogleCloudPlatform/kubernetes/blob/master/api/swagger-spec/v1.json
The text was updated successfully, but these errors were encountered: