schema

inline fun <T> MediaTypeDsl.schema()

Set the schema to be of type T.

The type T will be converted to a schema.


inline fun <T> MediaTypeDsl.schema(example: T)

Set the schema to be of type T, with the given object set as the example.

The type T will be converted to a schema.


fun <T> MediaTypeDsl.schema(ktype: KType, example: T)

Set the schema to be of type ktype, with the given object set as the example.