Header

data class Header(val description: String? = null, val required: Boolean = false, val deprecated: Boolean = false, val schema: ReferenceOr<JsonSchema>? = null, val content: Map<@Serializable(with = ContentTypeSerializer::class) ContentType, MediaType>? = null, val style: String? = null, val explode: Boolean? = null, val example: GenericElement? = null, val examples: Map<String, ReferenceOr<ExampleObject>>? = null, val extensions: ExtensionProperties? = null) : Extensible(source)

Header fields have the same meaning as for 'Param'. Style is always treated as Style.simple, as it is the only value allowed for headers.

Report a problem

Constructors

Link copied to clipboard
constructor(description: String? = null, required: Boolean = false, deprecated: Boolean = false, schema: ReferenceOr<JsonSchema>? = null, content: Map<@Serializable(with = ContentTypeSerializer::class) ContentType, MediaType>? = null, style: String? = null, explode: Boolean? = null, example: GenericElement? = null, examples: Map<String, ReferenceOr<ExampleObject>>? = null, extensions: ExtensionProperties? = null)

Types

Link copied to clipboard

Builder for constructing a Header instance.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

A short description of the header.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val extensions: ExtensionProperties?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard