We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e27de61 commit 91659aeCopy full SHA for 91659ae
openapi3/header.go
@@ -48,6 +48,11 @@ func (header *Header) UnmarshalJSON(data []byte) error {
48
return header.Parameter.UnmarshalJSON(data)
49
}
50
51
+// MarshalJSON returns the JSON encoding of Header.
52
+func (header Header) MarshalYAML() (interface{}, error) {
53
+ return header.Parameter, nil
54
+}
55
+
56
// SerializationMethod returns a header's serialization method.
57
func (header *Header) SerializationMethod() (*SerializationMethod, error) {
58
style := header.Style
0 commit comments