Closed ezequiel closed 3 months ago
Closes #1834
When overriding with any or interface{}, the code should prefer the "any" (empty) schema instead, not the object schema since that's different e.g.
any
interface{}
replace json.RawMessage any
type Thing struct { data json.RawMessage `json:"data"` }
"model.Thing": { "type": "object", "properties": { "data": {} } }
make all
cc @sdghchj
:shipit:
Closes #1834
Description
When overriding with
any
orinterface{}
, the code should prefer the "any" (empty) schema instead, not the object schema since that's different e.g..swaggo
model.go
Output
Test Plan
make all