model

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParameterInPath   = "path"
	ParameterInQuery  = "query"
	ParameterInHeader = "header"
	ParameterInCookie = "cookie"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	Method     string
	Path       string
	Parameters []*Parameter
	*openapi3.Operation
}

func NewOperation

func NewOperation(method, path string, operation *openapi3.Operation) *Operation

type Parameter

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

func NewParameter

func NewParameter(in string, name string, typ string, required bool, description string) *Parameter

Jump to

Keyboard shortcuts

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