content

fun content(contentType: String, schema: String = "{}")

Adds a body of contentType that the JSON Schema schema describes. contentType is a media type, such as text/csv, or a media range with * as the subtype, for any image, or as both parts, for a body of any type. The default schema, {}, takes any body.