Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Implementation ¶
type Implementation struct {
Default ResponseImplementation
PerCode *map[uint16]ResponseImplementation
}
User-provided metadata containing information on the implementation to be converted to OpenAPI spec.
type Response ¶
type Response interface {
// contains filtered or unexported methods
}
func FromResponseImplementation ¶
func FromResponseImplementation(impl ResponseImplementation) (Response, error)
type ResponseImplementation ¶
type ResponseImplementation struct {
Description string
Headers *map[string]header.Implementation
Content *map[string]media.Implementation
Links *map[string]link.Implementation
}
type Responses ¶
type Responses struct {
Default Response `json:"default"`
PerCode *map[uint16]Response `json:"-,omitempty" flatten:""`
}
func FromImplementation ¶
func FromImplementation(impl Implementation) (Responses, error)
func (Responses) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.