Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112074
responses.ex
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
931 B
Referenced Files
None
Subscribers
None
responses.ex
View Options
defmodule
OpenApiSpex.Responses
do
@moduledoc
"""
Defines teh `OpenApiSpex.Responses.t` type.
"""
alias
OpenApiSpex
.
{
Response
,
Reference
}
@typedoc
"""
[Responses Object](https://swagger.io/specification/
#
responsesObject)
A container for the expected responses of an operation. The container maps a HTTP response code to the expected response.
The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known in advance.
However, documentation is expected to cover a successful operation response and any known errors.
The default MAY be used as a default response object for all HTTP codes that are not covered individually by the specification.
The Responses Object MUST contain at least one response code, and it SHOULD be the response for a successful operation call.
"""
@type
t
::
%{
(
integer
|
:default
)
=>
Response
.
t
|
Reference
.
t
}
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 12:07 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38669
Default Alt Text
responses.ex (931 B)
Attached To
Mode
R22 open_api_spex
Attached
Detach File
Event Timeline
Log In to Comment