Documentation
¶
Index ¶
- Constants
- func GenerateAuthSchemaFromSecuritySchema(doc *v3.SecurityScheme) (byteSchema []byte, err error)
- func GenerateAuthSchemaName(doc *v3.SecurityScheme) (string, error)
- func GenerateJsonSchemaFromSchemaProxy(schema *base.SchemaProxy) ([]byte, error)
- func IsValidAuthSchema(doc *v3.SecurityScheme) bool
- type BasicAuth
- type BearerAuth
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 BearerAuth ¶
type BearerAuth struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.