OpenApiSpex.MediaType (open_api_spex v3.10.0) View Source

Defines the OpenApiSpex.MediaType.t type.

Link to this section Summary

Link to this section Types

Specs

t() :: %OpenApiSpex.MediaType{
  encoding: %{String => OpenApiSpex.Encoding.t()} | nil,
  example: any(),
  examples:
    %{
      required(String.t()) =>
        OpenApiSpex.Example.t() | OpenApiSpex.Reference.t()
    }
    | nil,
  schema: OpenApiSpex.Schema.t() | OpenApiSpex.Reference.t() | nil
}

Media Type Object

Each Media Type Object provides schema and examples for the media type identified by its key.