AkkurateConfig

A config for Akkurate plugin.

Properties

Link copied to clipboard
var contentType: ContentType

The content type of the response, in case of validation failure.

Link copied to clipboard
var status: HttpStatusCode

The status code of the response, in case of validation failure.

Functions

Link copied to clipboard
fun buildResponse(block: suspend (call: ApplicationCall, violations: ConstraintViolationSet) -> Unit)

Defines your own builder to generate a custom response on validation failure.