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
Since I have an embedded struct and a custom struct based on the JSON schema, like the following, I found that Swagger doesn't inline them.:
type( FieldSchema struct { jsonschema.Schema `json:",inline"` XConstraintUnique *bool `json:"x-constraint-unique"` } type Model struct { Fields []*FieldSchema `json:"fields"` } type ModelDef struct { Fields []*FieldSchema `json:", inline"` Site string `json:"site"` } )
The text was updated successfully, but these errors were encountered:
@ZoeGeng what's the idea of having json:",inline" instead of not having any json tag at all (afaik encoding/json does not handle inline in any way)?
json:",inline"
json
encoding/json
inline
Sorry, something went wrong.
No branches or pull requests
Since I have an embedded struct and a custom struct based on the JSON schema, like the following, I found that Swagger doesn't inline them.:
The text was updated successfully, but these errors were encountered: