parameter

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter struct {
	tree.Node
	Ref             string         `yaml:"$ref"`
	ParamName       string         `yaml:"name"`
	In              string         `yaml:"in"`
	Description     string         `yaml:"description"`
	Required        bool           `yaml:"required"`
	Deprecated      bool           `yaml:"deprecated"`
	AllowEmptyValue bool           `yaml:"allowEmptyValue"`
	Schema          *schema.Schema // Acts as alternative description of param
}

Parameter is a programmatic representation of the Parameter object defined here: https://swagger.io/specification/#parameter-object

func (*Parameter) GetChildren

func (p *Parameter) GetChildren() map[string]tree.NodeTraverser

func (*Parameter) GetName

func (p *Parameter) GetName() []string

func (*Parameter) GetParamName

func (p *Parameter) GetParamName() []string

func (*Parameter) GetRef

func (p *Parameter) GetRef() string

func (*Parameter) SetChild

func (p *Parameter) SetChild(_ string, t tree.NodeTraverser)

Jump to

Keyboard shortcuts

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