Ktor Server is a framework for building asynchronous server-side applications. Akkurate provides an integration to automatically validate incoming data.
Installation
Before using Akkurate with Ktor, you need to add the following dependency to your Gradle script:
// HTTP/1.1 422 Unprocessable Entity
// Content-Type: application/problem+json
{
"status": 422,
"fields": [
{
"message": "Must not be empty",
"path": "title"
}
],
"type": "https://akkurate.dev/validation-error",
"title": "The payload is invalid",
"detail": "The payload has been successfully parsed, but the server is unable to accept it due to validation errors."
}