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