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

Struct LinkRef

openapi3/refs.go:441–452  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

439// LinkRef represents either a Link or a $ref to a Link.
440// When serializing and both fields are set, Ref is preferred over Value.
441type LinkRef struct {
442 // Extensions only captures fields starting with 'x-' as no other fields
443 // are allowed by the openapi spec.
444 Extensions map[string]any
445 Origin *Origin `json:"-" yaml:"-"`
446
447 Ref string
448 Value *Link
449 extra []string
450
451 refPath *url.URL
452}
453
454var _ jsonpointer.JSONPointable = (*LinkRef)(nil)
455

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected