SchemaRef represents either a Schema or a $ref to a Schema. When serializing and both fields are set, Ref is preferred over Value.
| 12 | // SchemaRef represents either a Schema or a $ref to a Schema. |
| 13 | // When serializing and both fields are set, Ref is preferred over Value. |
| 14 | type SchemaRef struct { |
| 15 | // Extensions only captures fields starting with 'x-' as no other fields |
| 16 | // are allowed by the openapi spec. |
| 17 | Extensions map[string]any |
| 18 | |
| 19 | Ref string |
| 20 | Value *Schema |
| 21 | extra []string |
| 22 | |
| 23 | refPath *url.URL |
| 24 | } |
| 25 | |
| 26 | var _ jsonpointer.JSONPointable = (*SchemaRef)(nil) |
| 27 |
nothing calls this directly
no outgoing calls
no test coverage detected