OpenAPISchema implements OpenAPISchemaInterface.
()
| 45 | |
| 46 | // OpenAPISchema implements OpenAPISchemaInterface. |
| 47 | func (g *CachedOpenAPIGetter) OpenAPISchema() (*openapi_v2.Document, error) { |
| 48 | g.Do(func() { |
| 49 | g.openAPISchema, g.err = g.openAPIClient.OpenAPISchema() |
| 50 | }) |
| 51 | |
| 52 | // Return the saved result. |
| 53 | return g.openAPISchema, g.err |
| 54 | } |
| 55 | |
| 56 | type CachedOpenAPIParser struct { |
| 57 | openAPIClient discovery.OpenAPISchemaInterface |
nothing calls this directly
no test coverage detected