openapi

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeArray   string = "array"
	TypeObject  string = "object"
	TypeInteger string = "integer"
	TypeNumber  string = "number"
	TypeString  string = "string"
	TypeBoolean string = "boolean"
)
View Source
const (
	FormatInt64    string = "int64"
	FormatInt32    string = "int32"
	FormatFloat    string = "float"
	FormatDouble   string = "double"
	FormatDecimal  string = "decimal"
	FormatUuid     string = "uuid"
	FormatDate     string = "date"
	FormatDateTime string = "date-time"
)

Variables

This section is empty.

Functions

func ConvertFromOpenapi

func ConvertFromOpenapi(inFile, outFile string) error

Types

type Api

type Api struct {
	Name  string
	Items []PathItem
}

type Converter added in v2.1.1493

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

func NewConverter added in v2.1.1493

func NewConverter() *Converter

func (*Converter) Error added in v2.1.1493

func (c *Converter) Error(message string)

func (*Converter) Specification added in v2.1.1493

func (c *Converter) Specification(doc *openapi3.T) *spec.Spec

func (*Converter) Warning added in v2.1.1493

func (c *Converter) Warning(message string)

type PathItem

type PathItem struct {
	Path      string
	Method    string
	Operation *openapi3.Operation
}

Jump to

Keyboard shortcuts

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