yassun7010 / serde_valid

JSON Schema based validation tool using serde.
MIT License
46 stars 10 forks source link

Validate is not implmented for Hashmap #7

Closed nickjknight closed 1 year ago

nickjknight commented 1 year ago

I want to use this library to validate a field that is inside a hashmap, but validate is not implemented for std::collections::HashMap.

Suggested fix would be to do the same as you currently do for Vec, and just iterate through the values of Hashmap (the V in HashMap<K, V>), and call validate() on those.

yassun7010 commented 1 year ago

@nickjknight

I fiexed hashmap key type, and release v0.16.0.

I believe the issue has been resolved with this release, so the issue is closed.