Skip to content

Rejected constraint failed

Constraint {v:int} - Parses as int (invariant culture); binds an int.

URL value
abc
matched route
/c/{kind}/{value} (the unconstrained fallback)

What happened

The constrained route /c/int/{v:int} did not match: the constraint rejected abc. The URL then fell through to the unconstrained fallback /c/{kind}/{value}, which ranks lower in specificity and only wins when every constrained sibling has refused.