Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112765
media_type.ex
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
627 B
Referenced Files
None
Subscribers
None
media_type.ex
View Options
defmodule
OpenApiSpex.MediaType
do
@moduledoc
"""
Defines the `OpenApiSpex.MediaType.t` type.
"""
alias
OpenApiSpex
.
{
Schema
,
Reference
,
Example
,
Encoding
}
defstruct
[
:schema
,
:example
,
:examples
,
:encoding
]
@typedoc
"""
[Media Type Object](https://swagger.io/specification/
#
mediaTypeObject)
Each Media Type Object provides schema and examples for the media type identified by its key.
"""
@type
t
::
%
__MODULE__
{
schema
:
Schema
.
t
|
Reference
.
t
|
nil
,
example
:
any
,
examples
:
%{
String
.
t
=>
Example
.
t
|
Reference
.
t
}
|
nil
,
encoding
:
%{
String
=>
Encoding
.
t
}
|
nil
}
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 11:33 PM (22 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39207
Default Alt Text
media_type.ex (627 B)
Attached To
Mode
R22 open_api_spex
Attached
Detach File
Event Timeline
Log In to Comment