open_api_spex v1.1.4 OpenApiSpex.MediaType View Source

Defines the OpenApiSpex.MediaType.t type.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %OpenApiSpex.MediaType{encoding: %{optional(String) => OpenApiSpex.Encoding.t()}, example: any(), examples: %{optional(String.t()) => OpenApiSpex.Example.t() | OpenApiSpex.Reference.t()}, schema: OpenApiSpex.Schema.t() | OpenApiSpex.Reference.t()}

Media Type Object

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