Documentation ¶
Index ¶
- Constants
- type ParameterType
- type SecurityType
- type Spec
- func (oas *Spec) Definitions() spec.Definitions
- func (oas *Spec) GlobalConsumes() []string
- func (oas *Spec) GlobalProduces() []string
- func (oas *Spec) GlobalSecurities() []map[string][]string
- func (oas *Spec) Info() *spec.InfoProps
- func (oas *Spec) MarshalJSON() ([]byte, error)
- func (oas *Spec) Parameters() map[string]spec.Parameter
- func (oas *Spec) Paths() map[string]spec.PathItem
- func (oas *Spec) SecurityScheme(name string) *spec.SecurityScheme
- func (oas *Spec) Validate() error
Constants ¶
View Source
const ( UUID = "uuid" URL = "url" EMAIL = "email" )
View Source
const BasicAuthHeaderName string = "Authorization"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParameterType ¶
type ParameterType string
const ( Query ParameterType = "query" Path ParameterType = "path" Header ParameterType = "header" Body ParameterType = "body" FormData ParameterType = "formData" )
func (ParameterType) String ¶
func (p ParameterType) String() string
type SecurityType ¶
type SecurityType string
const ( Basic SecurityType = "basic" ApiKey SecurityType = "apiKey" )
func (SecurityType) String ¶
func (s SecurityType) String() string
type Spec ¶
func NewOpenApiSpecFromFile ¶
func (*Spec) Definitions ¶
func (oas *Spec) Definitions() spec.Definitions
func (*Spec) GlobalConsumes ¶
A list of MIME types the APIs on this resource can consume. This is global to all APIs but can be overridden on specific API calls.
func (*Spec) GlobalProduces ¶
A list of MIME types the APIs on this resource can produce. This is global to all APIs but can be overridden on specific API calls.
func (*Spec) GlobalSecurities ¶
func (*Spec) MarshalJSON ¶
func (*Spec) SecurityScheme ¶
func (oas *Spec) SecurityScheme(name string) *spec.SecurityScheme
Click to show internal directories.
Click to hide internal directories.