Documentation
¶
Index ¶
- Constants
- type Contract
- func (contract *Contract) Operations() ([]OperationKey, error)
- func (contract *Contract) ProtocolMethods() (map[string]struct{}, error)
- func (contract *Contract) RequestPropertyNames(path string, method string) ([]string, error)
- func (contract *Contract) SecurityRequirements(path string, method string) ([][]string, error)
- func (contract *Contract) SecurityScheme(name string) (SecurityScheme, error)
- func (contract *Contract) ServerURLs() ([]string, error)
- func (contract *Contract) ValidateRequest(path string, method string, request *http.Request, body []byte) error
- func (contract *Contract) ValidateResponse(path string, method string, statusCode int, headers http.Header, body []byte) error
- type OperationKey
- type SecurityScheme
Constants ¶
View Source
const CanonicalDocumentPath = "docs/openapi.yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct {
// contains filtered or unexported fields
}
func (*Contract) Operations ¶
func (contract *Contract) Operations() ([]OperationKey, error)
func (*Contract) ProtocolMethods ¶
func (*Contract) RequestPropertyNames ¶
func (*Contract) SecurityRequirements ¶
func (*Contract) SecurityScheme ¶
func (contract *Contract) SecurityScheme(name string) (SecurityScheme, error)
func (*Contract) ServerURLs ¶
func (*Contract) ValidateRequest ¶
type OperationKey ¶
type SecurityScheme ¶
Click to show internal directories.
Click to hide internal directories.