veb route with parameter int not checked in type #22452
Unanswered
jorgeluismireles
asked this question in
Questions and Answers
Replies: 1 comment
-
Interesting idea, thanks. I'll implement it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to prevent in veb invalid route parametes by type, pass along with its default value instead raising an error?
The last of these four cases says "one" is 0 and valid:
Changing number to be a result is not accepted:
Changing number to be an option (trying to catch the type problem) yields a panic:
Beta Was this translation helpful? Give feedback.
All reactions