parser

package
v0.4.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OptionNoRequestBody = "-"
)

Variables

This section is empty.

Functions

func Parse

func Parse(data *ifacetool.Data, snakeCase bool) (*spec.Specification, docutil.Transport, error)

Types

type OpBuilder

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

func (*OpBuilder) Build

func (b *OpBuilder) Build(method *ifacetool.Method) ([]*spec.Operation, error)

type PathVarNames added in v0.4.2

type PathVarNames [][]string

func (*PathVarNames) Add added in v0.4.2

func (pvn *PathVarNames) Add(names []string)

func (*PathVarNames) Get added in v0.4.2

func (pvn *PathVarNames) Get(i int) []string

func (*PathVarNames) Squash added in v0.4.2

func (pvn *PathVarNames) Squash() []string

Squash de-duplicates all the nested names and squash them into a flat list.

type StructField

type StructField struct {
	Name      string
	CamelCase bool
	Type      string
	Tag       reflect.StructTag

	Omitted bool              // Whether to omit this field.
	Params  []*spec.Parameter // The associated annotation parameters.
}

func (*StructField) Parse

func (f *StructField) Parse() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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