Skip to content

Matched constraint passed

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

URL value
42
bound value
42
bound CLR type
Int32
matched route
/c/int/{v:int}

What happened

A type constraint validated and converted the value: the parameter arrived as Int32, not as a string. Chained validators (like min/max in {v:int:min(1):max(5)}) gate the match but never undo the conversion - the last type constraint decides the bound value.