openapi

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommaDelimitedObject

func CommaDelimitedObject(fields []Field) string

func DefaultParamStyle

func DefaultParamStyle(p Param) string

func NormalizeArrayValues

func NormalizeArrayValues(values []string) []string

func ParamExplode

func ParamExplode(p Param) bool

func SerializeCookieParam

func SerializeCookieParam(p Param, value Value) ([]string, error)

func SerializeHeaderParam

func SerializeHeaderParam(p Param, value Value) ([]string, error)

func SerializePathParam

func SerializePathParam(p Param, value Value) (string, error)

func UnsupportedArrayStyleError

func UnsupportedArrayStyleError(p Param) error

Types

type Field

type Field struct {
	Key   string
	Value string
}

type Param

type Param struct {
	Name          string
	In            string
	Type          string
	Style         string
	Explode       *bool
	AllowReserved bool
}

type QueryParam

type QueryParam struct {
	Name          string
	Value         string
	AllowReserved bool
}

func SerializeQueryParam

func SerializeQueryParam(p Param, value Value) ([]QueryParam, error)

type Value

type Value struct {
	Scalar string
	Array  []string
	Object []Field
}

func ArrayValue

func ArrayValue(values []string) Value

func ObjectValue

func ObjectValue(fields []Field) Value

func ScalarValue

func ScalarValue(value string) Value

Jump to

Keyboard shortcuts

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