MCPcopy Index your code
hub / github.com/go-openapi/jsonpointer / NameProvider

Interface NameProvider

ifaces.go:44–50  ·  view source on GitHub ↗

NameProvider knows how to resolve go struct fields into json names. The default provider is brought by [github.com/go-openapi/jsonpointer/jsonname.DefaultJSONNameProvider].

Source from the content-addressed store, hash-verified

42// The default provider is brought by
43// [github.com/go-openapi/jsonpointer/jsonname.DefaultJSONNameProvider].
44type NameProvider interface {
45 // GetGoName gets the go name for a json property name
46 GetGoName(subject any, name string) (string, bool)
47
48 // GetGoNameForType gets the go name for a given type for a json property name
49 GetGoNameForType(tpe reflect.Type, name string) (string, bool)
50}

Callers 14

rebindChildFunction · 0.65
resolveNodeForTokenMethod · 0.65
getSingleImplFunction · 0.65
setSingleImplFunction · 0.65
TestNameProviderFunction · 0.95
TestNameProviderFunction · 0.95
GetJSONNameMethod · 0.95
TestNameProviderFunction · 0.95
TestNameProviderFunction · 0.95
GetGoNameMethod · 0.95
TestNameProviderFunction · 0.95
GetJSONNamesMethod · 0.95

Implementers 3

stubNameProvideroptions_test.go
NameProviderjsonname/name_provider.go
GoNameProviderjsonname/go_name_provider.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…