jellydator / validation

An idiomatic validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
MIT License
39 stars 6 forks source link

Issue #12 - Fix panic in validation.EnsureString #13

Closed slessard closed 1 year ago

slessard commented 1 year ago

The panic happened because the code was not checking the value's Kind before checking the value's Type