swagger

package
v0.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrSpecDoesntExist is returned when a file doesn't exist
	ErrSpecDoesntExist = errors.New("swagger: spec doesn't exist")
	// ErrSpecIncorrect is returned when a spec is incorrect
	ErrSpecIncorrect = errors.New("swagger: spec is not correct")
)
View Source
var ErrNoPaths = errors.New("no paths")

Functions

func NewDecoder

func NewDecoder(r io.Reader) ir.Decoder

NewDecoder returns a new generator with the given output directory

func NewDecoderFromFile

func NewDecoderFromFile(file string) (ir.Decoder, error)

NewDecoderFromFile takes a swagger 2.0 file and creates a swagger.Decoder

func String

func String(s string) *string

Types

type ErrorList

type ErrorList struct {
	// contains filtered or unexported fields
}

func (*ErrorList) Add

func (e *ErrorList) Add(err error)

func (*ErrorList) Error

func (e *ErrorList) Error() string

func (*ErrorList) HasErrors

func (e *ErrorList) HasErrors() bool

func (*ErrorList) New

func (e *ErrorList) New(s string)

Jump to

Keyboard shortcuts

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