v2

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 10 Imported by: 2 modules, 1 package

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

View Source
const (
	DefinitionsLabel         = "definitions"
	SecurityDefinitionsLabel = "securityDefinitions"
)
View Source
const (
	DefaultLabel = "default"
	ItemsLabel   = "items"
)
View Source
const (
	PathsLabel   = "paths"
	GetLabel     = "get"
	PostLabel    = "post"
	PatchLabel   = "patch"
	PutLabel     = "put"
	DeleteLabel  = "delete"
	OptionsLabel = "options"
	HeadLabel    = "head"
)
View Source
const (
	ExamplesLabel = "examples"
)
View Source
const (
	HeadersLabel = "headers"
)
View Source
const (
	ParametersLabel = "parameters"
)
View Source
const (
	ResponsesLabel = "responses"
)
View Source
const (
	ScopesLabel = "scopes"
)
View Source
const (
	SecurityLabel = "security"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Definitions

type Definitions struct {
	Schemas map[low.KeyReference[string]]low.ValueReference[*base.SchemaProxy]
}

func (*Definitions) Build

func (d *Definitions) Build(root *yaml.Node, idx *index.SpecIndex) error

func (*Definitions) FindSchema

func (d *Definitions) FindSchema(schema string) *low.ValueReference[*base.SchemaProxy]

type Examples

type Examples struct {
	Values map[low.KeyReference[string]]low.ValueReference[any]
}

func (*Examples) Build

func (e *Examples) Build(root *yaml.Node, _ *index.SpecIndex) error

func (*Examples) FindExample

func (e *Examples) FindExample(name string) *low.ValueReference[any]
type Header struct {
	Type             low.NodeReference[string]
	Format           low.NodeReference[string]
	Description      low.NodeReference[string]
	Items            low.NodeReference[*Items]
	CollectionFormat low.NodeReference[string]
	Default          low.NodeReference[any]
	Maximum          low.NodeReference[int]
	ExclusiveMaximum low.NodeReference[bool]
	Minimum          low.NodeReference[int]
	ExclusiveMinimum low.NodeReference[bool]
	MaxLength        low.NodeReference[int]
	MinLength        low.NodeReference[int]
	Pattern          low.NodeReference[string]
	MaxItems         low.NodeReference[int]
	MinItems         low.NodeReference[int]
	UniqueItems      low.NodeReference[bool]
	Enum             low.NodeReference[[]low.ValueReference[string]]
	MultipleOf       low.NodeReference[int]
	Extensions       map[low.KeyReference[string]]low.ValueReference[any]
}

func (*Header) Build

func (h *Header) Build(root *yaml.Node, idx *index.SpecIndex) error

func (*Header) FindExtension

func (h *Header) FindExtension(ext string) *low.ValueReference[any]

type Items

type Items struct {
	Type             low.NodeReference[string]
	Format           low.NodeReference[string]
	CollectionFormat low.NodeReference[string]
	Items            low.NodeReference[*Items]
	Default          low.NodeReference[any]
	Maximum          low.NodeReference[int]
	ExclusiveMaximum low.NodeReference[bool]
	Minimum          low.NodeReference[int]
	ExclusiveMinimum low.NodeReference[bool]
	MaxLength        low.NodeReference[int]
	MinLength        low.NodeReference[int]
	Pattern          low.NodeReference[string]
	MaxItems         low.NodeReference[int]
	MinItems         low.NodeReference[int]
	UniqueItems      low.NodeReference[bool]
	Enum             low.NodeReference[[]low.ValueReference[string]]
	MultipleOf       low.NodeReference[int]
}

func (*Items) Build

func (i *Items) Build(root *yaml.Node, idx *index.SpecIndex) error

type Parameter

type Parameter struct {
	Name             low.NodeReference[string]
	In               low.NodeReference[string]
	Type             low.NodeReference[string]
	Format           low.NodeReference[string]
	Description      low.NodeReference[string]
	Required         low.NodeReference[bool]
	AllowEmptyValue  low.NodeReference[bool]
	Schema           low.NodeReference[*base.SchemaProxy]
	Items            low.NodeReference[*Items]
	CollectionFormat low.NodeReference[string]
	Default          low.NodeReference[any]
	Maximum          low.NodeReference[int]
	ExclusiveMaximum low.NodeReference[bool]
	Minimum          low.NodeReference[int]
	ExclusiveMinimum low.NodeReference[bool]
	MaxLength        low.NodeReference[int]
	MinLength        low.NodeReference[int]
	Pattern          low.NodeReference[string]
	MaxItems         low.NodeReference[int]
	MinItems         low.NodeReference[int]
	UniqueItems      low.NodeReference[bool]
	Enum             low.NodeReference[[]low.ValueReference[string]]
	MultipleOf       low.NodeReference[int]
	Extensions       map[low.KeyReference[string]]low.ValueReference[any]
}

func (*Parameter) Build

func (p *Parameter) Build(root *yaml.Node, idx *index.SpecIndex) error

func (*Parameter) FindExtension

func (p *Parameter) FindExtension(ext string) *low.ValueReference[any]

type ParameterDefinitions

type ParameterDefinitions struct {
	Definitions map[low.KeyReference[string]]low.ValueReference[*Parameter]
}

func (*ParameterDefinitions) Build

func (pd *ParameterDefinitions) Build(root *yaml.Node, idx *index.SpecIndex) error

func (*ParameterDefinitions) FindParameter

func (pd *ParameterDefinitions) FindParameter(schema string) *low.ValueReference[*Parameter]

type PathItem

func (*PathItem) Build

func (p *PathItem) Build(root *yaml.Node, idx *index.SpecIndex) error

func (*PathItem) FindExtension

func (p *PathItem) FindExtension(ext string) *low.ValueReference[any]

type Paths

type Paths struct {
	PathItems  map[low.KeyReference[string]]low.ValueReference[*PathItem]
	Extensions map[low.KeyReference[string]]low.ValueReference[any]
}

func (*Paths) Build

func (p *Paths) Build(root *yaml.Node, idx *index.SpecIndex) error

func (*Paths) FindExtension

func (p *Paths) FindExtension(ext string) *low.ValueReference[any]

func (*Paths) FindPath

func (p *Paths) FindPath(path string) *low.ValueReference[*PathItem]

type Response

func (*Response) Build

func (r *Response) Build(root *yaml.Node, idx *index.SpecIndex) error

func (*Response) FindExtension

func (r *Response) FindExtension(ext string) *low.ValueReference[any]

func (*Response) FindHeader

func (r *Response) FindHeader(hType string) *low.ValueReference[*Header]

type Responses

type Responses struct {
	Codes      map[low.KeyReference[string]]low.ValueReference[*Response]
	Default    low.NodeReference[*Response]
	Extensions map[low.KeyReference[string]]low.ValueReference[any]
}

func (*Responses) Build

func (r *Responses) Build(root *yaml.Node, idx *index.SpecIndex) error

func (*Responses) FindResponseByCode

func (r *Responses) FindResponseByCode(code string) *low.ValueReference[*Response]

type ResponsesDefinitions

type ResponsesDefinitions struct {
	Definitions map[low.KeyReference[string]]low.ValueReference[*Response]
}

func (*ResponsesDefinitions) Build

func (r *ResponsesDefinitions) Build(root *yaml.Node, idx *index.SpecIndex) error

func (*ResponsesDefinitions) FindResponse

func (r *ResponsesDefinitions) FindResponse(schema string) *low.ValueReference[*Response]

type Scopes

type Scopes struct {
	Values     map[low.KeyReference[string]]low.ValueReference[string]
	Extensions map[low.KeyReference[string]]low.ValueReference[any]
}

func (*Scopes) Build

func (s *Scopes) Build(root *yaml.Node, idx *index.SpecIndex) error

func (*Scopes) FindScope

func (s *Scopes) FindScope(scope string) *low.ValueReference[string]

type SecurityDefinitions

type SecurityDefinitions struct {
	Definitions map[low.KeyReference[string]]low.ValueReference[*SecurityScheme]
}

func (*SecurityDefinitions) Build

func (s *SecurityDefinitions) Build(root *yaml.Node, idx *index.SpecIndex) error

func (*SecurityDefinitions) FindSecurityDefinition

func (s *SecurityDefinitions) FindSecurityDefinition(schema string) *low.ValueReference[*SecurityScheme]

type SecurityRequirement

type SecurityRequirement struct {
	Values low.ValueReference[map[low.KeyReference[string]]low.ValueReference[[]low.ValueReference[string]]]
}

func (*SecurityRequirement) Build

func (s *SecurityRequirement) Build(root *yaml.Node, _ *index.SpecIndex) error

type SecurityScheme

type SecurityScheme struct {
	Type             low.NodeReference[string]
	Description      low.NodeReference[string]
	Name             low.NodeReference[string]
	In               low.NodeReference[string]
	Flow             low.NodeReference[string]
	AuthorizationUrl low.NodeReference[string]
	TokenUrl         low.NodeReference[string]
	Scopes           low.NodeReference[*Scopes]
	Extensions       map[low.KeyReference[string]]low.ValueReference[any]
}

func (*SecurityScheme) Build

func (ss *SecurityScheme) Build(root *yaml.Node, idx *index.SpecIndex) error

Jump to

Keyboard shortcuts

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