HeaderRef represents either a Header or a $ref to a Header. When serializing and both fields are set, Ref is preferred over Value.
| 297 | // HeaderRef represents either a Header or a $ref to a Header. |
| 298 | // When serializing and both fields are set, Ref is preferred over Value. |
| 299 | type HeaderRef struct { |
| 300 | // Extensions only captures fields starting with 'x-' as no other fields |
| 301 | // are allowed by the openapi spec. |
| 302 | Extensions map[string]any |
| 303 | Origin *Origin `json:"-" yaml:"-"` |
| 304 | |
| 305 | Ref string |
| 306 | Value *Header |
| 307 | extra []string |
| 308 | |
| 309 | refPath *url.URL |
| 310 | } |
| 311 | |
| 312 | var _ jsonpointer.JSONPointable = (*HeaderRef)(nil) |
| 313 |
nothing calls this directly
no outgoing calls
no test coverage detected