swagger

package
v0.71.8-2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 9 Imported by: 0

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