MCPcopy Create free account
hub / github.com/getkin/kin-openapi / HeaderRef

Struct HeaderRef

openapi3/refs.go:299–310  ·  view source on GitHub ↗

HeaderRef represents either a Header or a $ref to a Header. When serializing and both fields are set, Ref is preferred over Value.

Source from the content-addressed store, hash-verified

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.
299type 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
312var _ jsonpointer.JSONPointable = (*HeaderRef)(nil)
313

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected