Akkurate
A plugin that validates received request bodies.
fun Application.configureSerialization() {
install(Akkurate)
install(ContentNegotiation) {
json()
}
install(RequestValidation) {
registerValidator(validateBook)
}
}
Content copied to clipboard