Feature request to respect the json:"name" struct tag on embedded structs. Currently, they are always bubbled up to the parent struct.
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"
}
Feature request to respect the
json:"name"struct tag on embedded structs. Currently, they are always bubbled up to the parent struct.Produces:
{ "properties": { "Name": { "type": "string" }, "ID": { "type": "string" } }, "type": "object" }Expected:
{ "properties": { "Name": { "type": "string" }, "Embedded": { "properties": { "ID": { "type": "string" } }, "type": "object" } }, "type": "object" }