Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArrayHeaders ¶
type ArrayHeaders struct {
// in: header
XTags []Label `json:"X-Tags"`
// in: header
XObjs []Ele `json:"X-Objs"`
}
ArrayHeaders carries response headers. A response header is a Swagger 2.0 simple schema too, so array-of-object headers are subject to the same constraint as query parameters (go-swagger#1088).
swagger:response arrayResp
type Request ¶
Request declares array query parameters. An array IS valid in a query parameter, but the items form a Swagger 2.0 *simple schema* — it may not be a $ref. The scanner used to emit `items: {$ref}` (invalid; the editor rejects it). The $ref must dissolve: a named primitive expands to its type (Label -> string); an object element has no valid simple-schema form, so it dissolves to an empty items schema with a diagnostic.
swagger:parameters arrayReq