I have been trying to set up a handler that takes 2 path parameters where the second one is optional.
This only seems to work as I expect when the generic type for the Path parameter is a struct where the second path param is an Option type. But it doesn't work if I try to use a 2 entry tuple type with the second type being an Option.
I have been trying to set up a handler that takes 2 path parameters where the second one is optional.
This only seems to work as I expect when the generic type for the
Path
parameter is a struct where the second path param is anOption
type. But it doesn't work if I try to use a 2 entry tuple type with the second type being anOption
.Is this expected and if so what is the reason?
Here is my attempt at a fairly minimal example
Thanks!