New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace ValidationRule with Cat's Validated #513
Comments
@vkostyukov can you please clarify how exactly do you see this possible? |
I think what we should aim for is to have default endpoints (i.e., |
What about the composition of endpoints? get(param("foo") :: header("bar")) { (foo: A?, bar: B?) => {
...
}
} What is a type of |
I liked Finch: A Life Without Exceptions. I was thinking the same when I was first looking for REST libraries in scala, but none of them do that. Then what I could not figure out is provide a way to encode response along with the http codes. If we define an http endpoint is of type |
@prayagupd Yes, status should be a part of an error. In our project services always return |
Validation removed in #1471 |
I don't have a particular solution in mind, but I think it's worth to have an opened ticket for this before we forget. I eagerly want to replace Finch's data types with the ones community share and understand.
ValidationRule
is a good candidate to be reaplced (in some way) with Cat'sValidated
.The text was updated successfully, but these errors were encountered: