constant

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// traditional go-zero info keys
	ApiInfoTitle   = "title"
	ApiInfoDesc    = "desc"
	ApiInfoVersion = "version"
	ApiInfoAuthor  = "author"
	ApiInfoEmail   = "email"
	// extended openapi keys
	// https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields
	ApiInfoServers      = "servers"      // comma separated urls
	ApiInfoExternalDocs = "externalDocs" // url
	ApiInfoTags         = "tags"         // comma separated string

	OptionDefault   = "default"
	OptionOptional  = "optional"
	OptionOptions   = "options"
	OptionRange     = "range"
	OptionOmitempty = "omitempty"

	TagKeyHeader = "header"
	TagKeyPath   = "path"
	TagKeyForm   = "form"
	TagKeyJson   = "json"
	// https://github.com/go-playground/validator
	TagKeyValidate = "validate"
)
View Source
const (
	// https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#dataTypeFormat
	FormatInt      = "int"
	FormatInt8     = "int8"
	FormatInt16    = "int16"
	FormatInt32    = "int32"
	FormatInt64    = "int64"
	FormatUint     = "uint"
	FormatUint8    = "uint8"
	FormatUint16   = "uint16"
	FormatUint32   = "uint32"
	FormatUint64   = "uint64"
	FormatFloat    = "float"
	FormatDouble   = "double"
	FormatByte     = "byte"
	FormatBinary   = "binary"
	FormatDate     = "date"
	FormatDateTime = "date-time"
	FormatPassword = "password"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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