Versions in this module Expand all Collapse all v0 v0.0.2 Mar 29, 2019 v0.0.1 Dec 29, 2018 Changes in this version + func ApplyResponseOverlay(response Response, data interface{}) error + func ExpandOperationIDs(document *loads.Document) + func ExpandPaths(document *loads.Document, basePath string) + func FakeString() string + func StubSchema(schema *spec.Schema) interface + type Operation struct + Responses map[int]Response + type Overlay struct + Paths map[string]PathItem + func EmptyOverlay() Overlay + func LoadOverlayFile(path string) (*Overlay, error) + func (overlay *Overlay) FindResponse(path string, method string, statusCode int) (*Response, error) + type PathItem struct + Get *Operation + Head *Operation + Options *Operation + Patch *Operation + Post *Operation + Put *Operation + type Response struct + Content string + type StubGenerator struct + func NewStubGenerator(urlOrPath string, options StubGeneratorOptions) (*StubGenerator, error) + func (stub *StubGenerator) FindOperation(httpPath string, httpMethod string) (*spec.Operation, error) + func (stub *StubGenerator) FindResponse(operation *spec.Operation) (*spec.Response, *int, error) + func (stub *StubGenerator) StubResponse(path string, method string) (interface{}, error) + type StubGeneratorOptions struct + BasePath string + Overlay string