@@ -407,7 +407,7 @@ data SwaggerItems = SwaggerItems
407data SwaggerResponses = SwaggerResponses
407data SwaggerResponses = SwaggerResponses
408 { -- | The documentation of responses other than the ones declared for specific HTTP response codes.
408 { -- | The documentation of responses other than the ones declared for specific HTTP response codes.
409 -- It can be used to cover undeclared responses.
409 -- It can be used to cover undeclared responses.
410− swaggerResponsesDefault :: SwaggerResponse
410+ swaggerResponsesDefault :: Maybe SwaggerResponse
412 -- | Any HTTP status code can be used as the property name (one property per HTTP status code).
412 -- | Any HTTP status code can be used as the property name (one property per HTTP status code).
413 -- Describes the expected response for those HTTP status codes.
413 -- Describes the expected response for those HTTP status codes.
@@ -416,7 +416,30 @@ data SwaggerResponses = SwaggerResponses
417type HttpStatusCode = Int
417type HttpStatusCode = Int
419+-- | Describes a single response from an API Operation.
419data SwaggerResponse = SwaggerResponse
420data SwaggerResponse = SwaggerResponse
421+ { -- | A short description of the response.
422+ -- GFM syntax can be used for rich text representation.
423+ swaggerResponseDescription :: Text
425+ -- | A definition of the response structure.
426+ -- It can be a primitive, an array or an object.
427+ -- If this field does not exist, it means no content is returned as part of the response.
428+ -- As an extension to the Schema Object, its root type value may also be "file".
429+ -- This SHOULD be accompanied by a relevant produces mime-type.
430+ , swaggerResponseSchema :: SwaggerSchema
432+ -- | A list of headers that are sent with the response.
433+ , swaggerResponseHeaders :: SwaggerHeaders
435+ -- | An example of the response message.
436+ , swaggerResponseExamples :: SwaggerExample
439+data SwaggerHeaders = SwaggerHeaders
442+data SwaggerExample = SwaggerExample
420 deriving (Show)
443 deriving (Show)
422data SwaggerExtension = SwaggerExtension
445data SwaggerExtension = SwaggerExtension