Encoding

data class Encoding(    val contentType: String,     val headers: MutableMap<String, Header>,     val style: String,     val explode: Boolean,     val allowReserved: Boolean = false)

A single encoding definition applied to a single schema property.

https://spec.openapis.org/oas/v3.1.0#encoding-object

Parameters

contentType

The Content-Type for encoding a specific property.

headers

A map allowing additional information to be provided as headers

style

Describes how a specific property value will be serialized depending on its type.

explode

When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect.

allowReserved

Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986

Constructors

Link copied to clipboard
fun Encoding(    contentType: String,     headers: MutableMap<String, Header>,     style: String,     explode: Boolean,     allowReserved: Boolean = false)

Properties

Link copied to clipboard
val allowReserved: Boolean = false
Link copied to clipboard
val contentType: String
Link copied to clipboard
val explode: Boolean
Link copied to clipboard
val headers: MutableMap<String, Header>
Link copied to clipboard
val style: String