oapi-codegen
oapi-codegen copied to clipboard
AdditionalProperties behavior differences
I am not sure if these two should be different?
definitions
Foo:
type: object
additionalProperties: true
Bar:
type: object
additionalProperties:
type: object
code generated
// Foo defines model for Foo.
type Foo struct {
AdditionalProperties map[string]interface{} `json:"-"`
}
// Bar defines model for Bar.
type Bar struct {
AdditionalProperties map[string]map[string]interface{} `json:"-"`
}
Should Bar also be generated as Foo here? Thanks.