I have not created an issue for this because I am curious to hear what you have to say about this.
Suppose I have a route like this:
@bp.get("/<uid:int>")
async def foobar(request, uid):
The idea being that I will query it like this:
/291
But, what if I want to query it as a hexadecimal:
/0x123
HTTP/1.1 404 Not Found
Bummer.
I feel like this should be acceptable. This happens because the router is just using regex:
REGEX_TYPES = {
...
'int': (int, r'\d+'),
...
}
What do you think? is this a bug? Do we need more discussion? Should I make it an issue?