zio.http.endpoint.openapi.OpenAPI.MediaType
See theMediaType companion object
final case class MediaType(schema: ReferenceOr[JsonSchema], examples: Map[String, ReferenceOr[Example]], encoding: Map[String, Encoding])
Each Media Type Object provides schema and examples for the media type identified by its key.
Value parameters
- encoding
-
A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is multipart or application/x-www-form-urlencoded.
- examples
-
Examples of the media type. Each example object SHOULD match the media type and specified schema if present. If referencing a schema which contains an example, the examples value SHALL override the example provided by the schema.
- schema
-
The schema defining the content of the request, response, or parameter.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article