CallbackRef represents either a Callback or a $ref to a Callback. When serializing and both fields are set, Ref is preferred over Value.
| 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. |
| 15 | type 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 | |
| 28 | var _ jsonpointer.JSONPointable = (*CallbackRef)(nil) |
| 29 |
nothing calls this directly
no outgoing calls
no test coverage detected