Page MenuHomePhorge

media_type.ex
No OneTemporary

Size
627 B
Referenced Files
None
Subscribers
None

media_type.ex

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

Mime Type
text/plain
Expires
Sat, Nov 23, 11:33 PM (19 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39207
Default Alt Text
media_type.ex (627 B)

Event Timeline