MCPcopy Create free account
hub / github.com/goadesign/goa / Response

Struct Response

http/codegen/openapi/v2/openapi.go:157–172  ·  view source on GitHub ↗

Response describes an operation response.

Source from the content-addressed store, hash-verified

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 {

Callers 8

oneOfResultSingleViewDSLFunction · 0.50
result_dsls.goFile · 0.50
streaming_dsls.goFile · 0.50
server_dsls.goFile · 0.50
openapi_dsls.goFile · 0.50
payload_dsls.goFile · 0.50

Calls

no outgoing calls

Tested by 2

oneOfResultSingleViewDSLFunction · 0.40