Skip to content
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

Support infallible endpoints #226

Open
tpetrucciani opened this issue Apr 8, 2020 · 0 comments
Open

Support infallible endpoints #226

tpetrucciani opened this issue Apr 8, 2020 · 0 comments

Comments

@tpetrucciani
Copy link
Contributor

tpetrucciani commented Apr 8, 2020

tapiro should probably support endpoints that never fail, with error type Nothing.

tapir provides an infallibleEndpoint for this case.

(I'm not sure how useful this is though: we'll certainly have endpoints that never give expected, business-logic errors, but I suppose unexpected failures like timeouts can occur also with these endpoints, and I'm not sure how tapir handles these.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant