specs

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spec

type Spec struct {
	Filename    string
	FilePath    string
	FileContent string

	Format string

	Data *capsules.Data
}

A Spec holds the information of an API spec file.

func LoadSpec added in v0.2.0

func LoadSpec(filePath, format string) (s *Spec, err error)

LoadSpec loads a specification.

type Swagger

type Swagger struct {
	FilePath string
	Data     *capsules.Data
}

Swagger holds the data that to parse swagger spec.

func (*Swagger) Parse

func (s *Swagger) Parse(version string) error

Parse parses swagger spec to data.

Jump to

Keyboard shortcuts

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