swagger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {
	Name  string `json:"name,omitempty" yaml:"name,omitempty"`
	URL   string `json:"url,omitempty" yaml:"url,omitempty"`
	Email string `json:"email,omitempty" yaml:"email,omitempty"`
}

type ExternalDocs

type ExternalDocs struct {
	Description string `json:"description,omitempty" yaml:"description,omitempty"`
	URL         string `json:"url,omitempty" yaml:"url,omitempty"`
}

type License

type License struct {
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
	URL  string `json:"url,omitempty" yaml:"url,omitempty"`
}

type Properties

type Properties map[string]schema

type Swagger

type Swagger struct {
	OpenAPI    string          `json:"openapi" yaml:"openapi"`
	Info       info            `json:"info,omitempty" yaml:"info,omitempty"`
	Servers    []server        `json:"servers,omitempty" yaml:"servers,omitempty"`
	Tags       []tag           `json:"tags,omitempty" yaml:"tags,omitempty"`
	Schemes    []string        `json:"schemes,omitempty" yaml:"schemes,omitempty"`
	Paths      map[string]path `json:"paths" yaml:"paths"`
	Components components      `json:"components,omitempty" yaml:"components,omitempty"`
}

func BuildSwagger

func BuildSwagger(node node.Node) (swagger Swagger, err error)

func (*Swagger) SaveJSON

func (s *Swagger) SaveJSON(path string) (err error)

Jump to

Keyboard shortcuts

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