Response describes an operation response.
| 155 | |
| 156 | // Response describes an operation response. |
| 157 | Response struct { |
| 158 | // Description of the response. GFM syntax can be used for rich text representation. |
| 159 | Description string `json:"description,omitempty" yaml:"description,omitempty"` |
| 160 | // Schema is a definition of the response structure. It can be a primitive, |
| 161 | // an array or an object. If this field does not exist, it means no content is |
| 162 | // returned as part of the response. As an extension to the Schema Object, its root |
| 163 | // type value may also be "file". |
| 164 | Schema *openapi.Schema `json:"schema,omitempty" yaml:"schema,omitempty"` |
| 165 | // Headers is a list of headers that are sent with the response. |
| 166 | Headers map[string]*Header `json:"headers,omitempty" yaml:"headers,omitempty"` |
| 167 | // Ref references a global API response. |
| 168 | // This field is exclusive with the other fields of Response. |
| 169 | Ref string `json:"$ref,omitempty" yaml:"$ref,omitempty"` |
| 170 | // Extensions defines the swagger extensions. |
| 171 | Extensions map[string]any `json:"-" yaml:"-"` |
| 172 | } |
| 173 | |
| 174 | // Header represents a header parameter. |
| 175 | Header struct { |
no outgoing calls