openapi

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalDocs

type ExternalDocs struct {
	Description string `yaml:"description"`
	Url         string `yaml:"url"`
}

ExternalDocs is a programmatic representation of the External Docs object defined here: https://swagger.io/specification/#external-documentation-object

type OpenAPI

type OpenAPI struct {
	tree.Node
	OpenAPI    string `yaml:"openapi"` // TODO it's unclear what this refers to
	Info       info.Info
	Servers    []servers.Server
	Paths      map[string]*path.Item
	Components components.Components
}

OpenAPI is a programmatic representation of the OpenApi Document object defined here: https://swagger.io/specification/#openapi-object

func LoadAPISpec added in v0.0.7

func LoadAPISpec(openAPIFile string) (*OpenAPI, error)

func (*OpenAPI) GetChildren added in v0.0.7

func (o *OpenAPI) GetChildren() map[string]tree.NodeTraverser

func (*OpenAPI) GetRef added in v0.0.7

func (o *OpenAPI) GetRef() string

func (*OpenAPI) SetChild added in v0.0.7

func (o *OpenAPI) SetChild(i string, child tree.NodeTraverser)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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