oas3

package
v0.0.0-...-d633093 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultResponseDesc = "A successful response."
View Source
var (
	ErrInvalidType = fmt.Errorf("invalid type")
)

Functions

func ConvertPath

func ConvertPath(path string) string

func GetDoc

func GetDoc(p *plugin.Plugin) (*openapi3.T, error)

func GetMapValueType

func GetMapValueType(typ string) (string, error)

GetMapValueType map[[2]string][]string -> []string

func GetProperty

func GetProperty(properties map[string]string, key string) string

func IsUint

func IsUint(format string) bool

func MergeRequired

func MergeRequired(rs ...[]string) []string

MergeRequired merge schema required fields

func ParseInteger

func ParseInteger(format string, s string) (float64, error)

func ParseNumber

func ParseNumber(format string, s string) (float64, error)

func ParseValue

func ParseValue(typ string, format string, s string) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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