MCPcopy Create free account
hub / github.com/go-openapi/spec / MustCreateRef

Function MustCreateRef

ref.go:50–52  ·  view source on GitHub ↗

MustCreateRef creates a ref object but panics when refURI is invalid. Use the NewRef method for a version that returns an error.

(refURI string)

Source from the content-addressed store, hash-verified

48// MustCreateRef creates a ref object but panics when refURI is invalid.
49// Use the NewRef method for a version that returns an error.
50func MustCreateRef(refURI string) Ref {
51 return Ref{Ref: jsonreference.MustCreateRef(refURI)}
52}
53
54// RemoteURI gets the remote uri part of the ref.
55func (r *Ref) RemoteURI() string {

Callers 15

assertRefResolveFunction · 0.92
assertRefResolveFunction · 0.85
header_test.goFile · 0.85
items_test.goFile · 0.85
TestJSONLookupItemsFunction · 0.85
ParamRefFunction · 0.85
parameters_test.goFile · 0.85
RefPropertyFunction · 0.85
RefSchemaFunction · 0.85

Calls

no outgoing calls

Tested by 10

assertRefResolveFunction · 0.74
assertRefResolveFunction · 0.68
TestJSONLookupItemsFunction · 0.68
TestJSONLookupResponsesFunction · 0.68
TestJSONLookupResponseFunction · 0.68
TestCloneRefFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…