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

Function defaultResolutionCache

cache.go:70–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func defaultResolutionCache() *simpleCache {
71 return &simpleCache{store: map[string]any{
72 "http://swagger.io/v2/schema.json": MustLoadSwagger20Schema(),
73 "http://json-schema.org/draft-04/schema": MustLoadJSONSchemaDraft04(),
74 }}
75}
76
77func cacheOrDefault(cache ResolutionCache) ResolutionCache { //nolint:ireturn // returns the public interface type by design
78 onceCache.Do(initResolutionCache)

Callers 4

initResolutionCacheFunction · 0.85
TestExpand_Issue145Function · 0.85

Calls 2

MustLoadSwagger20SchemaFunction · 0.85

Tested by 3

TestExpand_Issue145Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…