-
-
Notifications
You must be signed in to change notification settings - Fork 483
Closed
Description
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"
}Metadata
Metadata
Assignees
Labels
No labels