type Fake … // OpenAPISchema returns the openapi document and a potential error. func (f *Fake) OpenAPISchema() (*openapi_v2.Document, error) { … } func getSchema(f *Fake, model string) (openapi.Schema, error) { … } // GetSchemaOrDie returns the openapi schema. func GetSchemaOrDie(f *Fake, model string) openapi.Schema { … }