swagger

package
v0.71.6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert()

Types

type Definition

type Definition struct {
	Type       string
	Required   []string
	Properties map[string]interface{}
	Xml        map[string]interface{}
}

type Definitions

type Definitions map[string]interface{}

type Parameter

type Parameter struct {
	Name             string
	In               string
	Description      string
	Required         bool
	Type             string
	Format           string
	Items            map[string]interface{}
	CollectionFormat string
	Schema           map[string]interface{} // {"$ref": "#/definitions/Order"}
}

type Path

type Path map[string]PathDetails

type PathDetails

type PathDetails struct {
	Method     string
	Consumes   []string // content-type?
	Produces   []string // content-type?
	Parameters []Parameter
	Responses  []string
	Security   []map[string]interface{}
}

type Swagger2

type Swagger2 struct {
	Swagger             string
	Info                map[string]interface{}
	BasePath            string
	Tags                map[string]interface{}
	Schemes             []string
	Paths               map[string]Path
	SecurityDefinitions map[string]interface{}
	Definitions         map[string]interface{}
	ExternalDocs        map[string]interface{}
}

swagger type

Jump to

Keyboard shortcuts

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