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

Struct CallbackRef

openapi3/refs.go:15–26  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

13// CallbackRef represents either a Callback or a $ref to a Callback.
14// When serializing and both fields are set, Ref is preferred over Value.
15type CallbackRef struct {
16 // Extensions only captures fields starting with 'x-' as no other fields
17 // are allowed by the openapi spec.
18 Extensions map[string]any
19 Origin *Origin `json:"-" yaml:"-"`
20
21 Ref string
22 Value *Callback
23 extra []string
24
25 refPath *url.URL
26}
27
28var _ jsonpointer.JSONPointable = (*CallbackRef)(nil)
29

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected