()
| 68 | } |
| 69 | |
| 70 | func 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 | |
| 77 | func cacheOrDefault(cache ResolutionCache) ResolutionCache { //nolint:ireturn // returns the public interface type by design |
| 78 | onceCache.Do(initResolutionCache) |
searching dependent graphs…