MCPcopy Index your code
hub / github.com/getkin/kin-openapi / RefPath

Method RefPath

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

RefPath returns the path of the $ref relative to the root document.

()

Source from the content-addressed store, hash-verified

179
180// RefPath returns the path of the $ref relative to the root document.
181func (x *ExampleRef) RefPath() *url.URL { return copyURI(x.refPath) }
182
183func (x *ExampleRef) setRefPath(u *url.URL) {
184 // Once the refPath is set don't override. References can be loaded

Callers 1

resolveExampleRefMethod · 0.95

Calls 1

copyURIFunction · 0.70

Tested by

no test coverage detected