generation

package
v0.0.0-...-b705c5c Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidSecuritySchema = "invalid security schema type or scheme"
)

Variables

This section is empty.

Functions

func GenerateAuthSchemaFromSecuritySchema

func GenerateAuthSchemaFromSecuritySchema(doc *v3.SecurityScheme) (byteSchema []byte, err error)

func GenerateAuthSchemaName

func GenerateAuthSchemaName(doc *v3.SecurityScheme) (string, error)

func GenerateJsonSchemaFromSchemaProxy

func GenerateJsonSchemaFromSchemaProxy(schema *base.SchemaProxy) ([]byte, error)

func IsValidAuthSchema

func IsValidAuthSchema(doc *v3.SecurityScheme) bool

Types

type BasicAuth

type BasicAuth struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type BearerAuth

type BearerAuth struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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