Keats / validator

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

Make ValidationErrors ordered #337

Closed jmjoy closed 2 weeks ago

jmjoy commented 2 weeks ago

Just an idea, maybe there is a better solution

To solve https://github.com/Keats/validator/issues/286 , use IndexMap instead of HashMap in ValidationErrors.

Keats commented 2 weeks ago

I'm not really keen on that. Errors for a field can be ordered but imo not for the whole struct.