Akkurate

val Akkurate: ApplicationPlugin<AkkurateConfig>

A plugin that validates received request bodies.

fun Application.configureSerialization() {
install(Akkurate)

install(ContentNegotiation) {
json()
}
install(RequestValidation) {
registerValidator(validateBook)
}
}