testing

package
v1.10.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2017 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSchemaOrDie

func GetSchemaOrDie(f Fake, model string) openapi.Schema

GetSchemaOrDie returns returns the openapi schema.

Types

type Fake

type Fake struct {
	Path string
	// contains filtered or unexported fields
}

Fake opens and returns a openapi swagger from a file Path. It will parse only once and then return the same copy everytime.

func (*Fake) OpenAPISchema

func (f *Fake) OpenAPISchema() (*openapi_v2.Document, error)

OpenAPISchema returns the openapi document and a potential error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL