rawBody

fun rawBody(contentType: String, schema: String)

Says that the route reads its whole body itself, as contentType (such as application/json) that the JSON Schema schema describes. The route then gets a 400 with field body for an empty body, and the handler reads DebugRequest.body. A route can't have both a raw body and body fields.