spec

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Raw []byte

Functions

func Hash

func Hash() string

func Resolve

func Resolve(operationID string) (groups []string, action string, ok bool)

func ToKebab

func ToKebab(s string) string

Types

type BinaryResponse

type BinaryResponse struct{ ContentType string }

type Body

type Body struct {
	Kind       string
	Example    string
	FileFields []string
	Fields     []BodyField
}

type BodyField added in v0.1.3

type BodyField struct {
	Name     string
	Type     string
	Required bool
	Enum     []string
	Nullable bool
	Kind     string
	Children []BodyField
}

type Operation

type Operation struct {
	OperationID    string
	Method         string
	Path           string
	Groups         []string
	Action         string
	Summary        string
	Deprecated     bool
	PathParams     []Param
	QueryParams    []Param
	Body           *Body
	BinaryResponse *BinaryResponse
	RequiredScope  string // x-required-scope ("" si ausente)
	Irreversible   bool   // x-irreversible (false si ausente)
}

func Load

func Load() (ops []Operation, nonConforming []string, err error)

func (Operation) Mutating

func (o Operation) Mutating() bool

func (Operation) Paginated

func (o Operation) Paginated() bool

type Param

type Param struct {
	Name        string
	In          string
	Required    bool
	Type        string
	Description string
}

Jump to

Keyboard shortcuts

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