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
any
When specifying any as a global override in .swaggo, it seems to override with the object shema instead of the any schema
.swaggo
replace json.RawMessage any
type Thing struct { data json.RawMessage `json:"data"` }
"model.Thing": { "type": "object", "properties": { "data": {} } }
"model.Thing": { "type": "object", "properties": { "data": { "type": "object" } } }
e.g. v1.16.3
e.g. v1.22.4
The text was updated successfully, but these errors were encountered:
Issue seems to stem from:
swag/operation.go
Lines 845 to 846 in 7204462
We can probably use &spec.Schema{} here instead?
&spec.Schema{}
Sorry, something went wrong.
Fix global overrides for any/interface ref types
d141d3a
Closes swaggo#1834
Successfully merging a pull request may close this issue.
Description
When specifying
any
as a global override in.swaggo
, it seems to override with the object shema instead of the any schemaTo Reproduce
.swaggo
model.go
Expected behavior
Actual behavior
Your swag version
e.g. v1.16.3
Your go version
e.g. v1.22.4
The text was updated successfully, but these errors were encountered: