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

Capture + Lenient? #1155

Closed
neongreen opened this issue Mar 18, 2019 · 2 comments
Closed

Capture + Lenient? #1155

neongreen opened this issue Mar 18, 2019 · 2 comments

Comments

@neongreen
Copy link

I have an endpoint that looks like /Users/v2/<uuid>. I would like to use Capture "id" UUID in my API types (for documentation purposes), but when the UUID is unparseable, I want the API user to get 401, not 404. It would be nice if I could say Capture' [Lenient] "id" UUID and then get an Either Text UUID in my handler and deal with it myself.

Does that make sense?

@phadej
Copy link
Contributor

phadej commented Mar 18, 2019

It does.

@neongreen
Copy link
Author

Alright, I'll do a PR.

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

2 participants