-
-
Notifications
You must be signed in to change notification settings - Fork 807
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
Support for type: object and {} #3
Comments
You're right, I'll patch that soon, it should be simple enough. |
I'm guessing if I support map[string]interface{}, I might as well add additionalProperties support, since that's the same thing. |
Done, at least for |
fenngwd
added a commit
to fenngwd/oapi-codegen
that referenced
this issue
Mar 26, 2021
Generate interface{} for openapi's Any
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This project is great, glad I found it. Noticed this running against my own project:
The Java OpenAPI Tools code generator templates for go support
type: object
and Any Type ({}
in OpenApi syntax) types, which I believe should just translate tomap[string]interface{}
andinterface{}
respectively, I think.object
just errors out in the currentoapi-codegen
, and using{}
results in an empty anonymous struct type, which isn't quite right.The text was updated successfully, but these errors were encountered: