MediaTypeBuilder

class MediaTypeBuilder(context: OpenApiDslContext) : MediaTypeDsl, Builder<MediaType>

A builder for MediaTypeDsl.

Constructors

Link copied to clipboard
fun MediaTypeBuilder(context: OpenApiDslContext)

Functions

Link copied to clipboard
open override fun build(): MediaType

Build the object.

Link copied to clipboard
open override fun schema(ktype: KType)

Sets the schema of this object to be of the given KType. The type will be converted to a schema.

Properties

Link copied to clipboard
open override var example: Any?

The example for this object. Should match the given schema.

Link copied to clipboard
open override var schema: Schema<*>? = null

The schema for this object.