Skip to content

Capture + Lenient? #1155

Closed
Closed
@neongreen

Description

@neongreen

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions