schema

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.

DSLs implementing MediaTypeDsl must properly register any non-standard schema using the OpenApiDslContext, which will provide a proper schema with a $ref.


open override var schema: Schema<*>?

The schema for this object.