diff --git a/openapi3/header.go b/openapi3/header.go index a492be4bf..f359581a5 100644 --- a/openapi3/header.go +++ b/openapi3/header.go @@ -48,7 +48,7 @@ func (header *Header) UnmarshalJSON(data []byte) error { return header.Parameter.UnmarshalJSON(data) } -// MarshalJSON returns the JSON encoding of Header. +// MarshalYAML returns the JSON encoding of Header. func (header Header) MarshalYAML() (interface{}, error) { return header.Parameter, nil }