ExampleRef represents either a Example or a $ref to a Example. When serializing and both fields are set, Ref is preferred over Value.
| 155 | // ExampleRef represents either a Example or a $ref to a Example. |
| 156 | // When serializing and both fields are set, Ref is preferred over Value. |
| 157 | type ExampleRef struct { |
| 158 | // Extensions only captures fields starting with 'x-' as no other fields |
| 159 | // are allowed by the openapi spec. |
| 160 | Extensions map[string]any |
| 161 | Origin *Origin `json:"-" yaml:"-"` |
| 162 | |
| 163 | Ref string |
| 164 | Value *Example |
| 165 | extra []string |
| 166 | |
| 167 | refPath *url.URL |
| 168 | } |
| 169 | |
| 170 | var _ jsonpointer.JSONPointable = (*ExampleRef)(nil) |
| 171 |
nothing calls this directly
no outgoing calls
no test coverage detected