Voyager icon indicating copy to clipboard operation
Voyager copied to clipboard

Property name not respected when using FromRoute

Open Jefwillems opened this issue 1 year ago • 1 comments

When you use something like this:

[FromRoute(Name="world")] public string Hello {get;set;}

In combination with a validator, the validation errors will mark the erroneous field with "Hello" instead of the "world" property. The only way to change this, is to write a validator with ".WithName("world").OverridePropertyName("world");"

Is this intended behaviour? If not, i'll gladly try to contribute.

Jefwillems avatar Feb 20 '24 13:02 Jefwillems

No, that looks like a bug.

smithgeek avatar Jun 27 '24 18:06 smithgeek

Fixed in 0.17.1

smithgeek avatar Oct 25 '24 17:10 smithgeek