Akkurate

val Akkurate: ClientPlugin<AkkurateConfig>

A plugin that validates deserialized response bodies.

val client = HttpClient(CIO) {
install(Akkurate) {
registerValidator(validateBook)
}
install(ContentNegotiation) {
json()
}
}