Documentation ¶
Overview ¶
Package openapi contains data structures for Swagger v2.0.
We use these data structures to compare the API specification we have here with the one of the server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct { Description interface{} `json:"description,omitempty"` Schema *Schema `json:"schema"` }
Body describes a response body
type Parameter ¶
type Parameter struct { In string `json:"in"` Name string `json:"name"` Required bool `json:"required,omitempty"` Schema *Schema `json:"schema,omitempty"` Type string `json:"type,omitempty"` }
Parameter describes an input parameter, which could be in the URL path, in the query string, or in the request body
type Responses ¶
type Responses struct {
Successful Body `json:"200"`
}
Responses describes the possible responses
type RoundTrip ¶
type RoundTrip struct { Consumes []string `json:"consumes,omitempty"` Produces []string `json:"produces,omitempty"` Parameters []*Parameter `json:"parameters,omitempty"` Responses *Responses `json:"responses,omitempty"` }
RoundTrip describes an HTTP round trip with a given method and path
Click to show internal directories.
Click to hide internal directories.