Encoding
data class Encoding( val contentType: String, val headers: MutableMap<String, Header>, val style: String, val explode: Boolean, val allowReserved: Boolean = false)
Content copied to clipboard
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