Keats / validator

Simple validation for Rust structs
MIT License
1.91k stars 140 forks source link

Why field name is static? #294

Closed HosMercury closed 4 months ago

HosMercury commented 4 months ago

It makes it impossible to concatenate strings to it .

Imagine nested field items

What i want to do is add an index to the error field message:

Like items-1 items-2

Or how could user knows which item is invalid?