Closed pboguslawski closed 1 year ago
Describe the bug
When Test response header is defined using embedded struct like this
Test
type MyEmbedded struct { Test string `header:"Test" json:"-"` } type MyResponse struct { MyEmbedded Other string `json:"other"` }
such header is not present in API response. No such problem when header is defined directly i.e.
type MyResponse struct { Test string `header:"Test" json:"-"` Other string `json:"other"` }
Expected behavior Response header defined using embedded struct should be present in response.
Describe the bug
When
Test
response header is defined using embedded struct like thissuch header is not present in API response. No such problem when header is defined directly i.e.
Expected behavior Response header defined using embedded struct should be present in response.