Skip to content

Commit 6f2d174

Browse files
FrancisLennon17francis-lennon-whs
andauthored
Remove omitempty from response description (#204)
Co-authored-by: Francis Lennon <francis.lennon@whitehatsec.com>
1 parent d315d71 commit 6f2d174

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openapi3/response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (responses Responses) Validate(c context.Context) error {
3434
// Response is specified by OpenAPI/Swagger 3.0 standard.
3535
type Response struct {
3636
ExtensionProps
37-
Description string `json:"description,omitempty" yaml:"description,omitempty"`
37+
Description string `json:"description" yaml:"description"`
3838
Headers map[string]*HeaderRef `json:"headers,omitempty" yaml:"headers,omitempty"`
3939
Content Content `json:"content,omitempty" yaml:"content,omitempty"`
4040
Links map[string]*LinkRef `json:"links,omitempty" yaml:"links,omitempty"`

0 commit comments

Comments
 (0)