We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
openapi3gen
Feature request to respect the json:"name" struct tag on embedded structs. Currently, they are always bubbled up to the parent struct.
json:"name"
type EmbeddedStruct struct { ID string } type ContainerStruct struct { Name string EmbeddedStruct `json:"Embedded"` }
Produces:
{ "properties": { "Name": { "type": "string" }, "ID": { "type": "string" } }, "type": "object" }
Expected:
{ "properties": { "Name": { "type": "string" }, "Embedded": { "properties": { "ID": { "type": "string" } }, "type": "object" } }, "type": "object" }
The text was updated successfully, but these errors were encountered:
PRs open.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Feature request to respect the
json:"name"
struct tag on embedded structs. Currently, they are always bubbled up to the parent struct.Produces:
Expected:
The text was updated successfully, but these errors were encountered: