-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
[Go] Generate XML struct annotations #490
Comments
Is this done with |
Yes, It could make some sense to include both XML and JSON by default if XML were more popular, but the vast majority of APIs I encounter these days don't use XML. Is it different for you? Perhaps we can focus on making help easier to access? For example, we could look into aliasing I use the following: help
config-help -l go
|
Good point. I updated the error message here: #494 |
@grokify Thanks for the quick response! I must be putting this option in the wrong place, because I'm still not seeing any XML tags. Does this look right?
|
Ah, I see that I was writing |
Description
When generating Go code, one gets types tagged with JSON:
This is awesome for JSON APIs. However, OpenAPI also allows for
application/xml
content-types! I am writing an XML API and currently have to manually go in and tag these types.openapi-generator version
The Docker CLI generator.
Command line used for generation
Steps to reproduce
Write any
swagger.yml
and generate Go codeRelated issues/PRs
Suggest a fix/enhancement
Automatically annotate all structs with both XML and JSON names, to start. The tags are space separated.
The text was updated successfully, but these errors were encountered: