Keats / validator

Simple validation for Rust structs
MIT License
2.07k stars 151 forks source link

Make ValidationErrors ordered #337

Closed jmjoy closed 4 months ago

jmjoy commented 4 months 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 4 months ago

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