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

Passing `nil` into `validation.EnsureString` will cause a panic #12

Closed slessard closed 1 year ago

slessard commented 1 year ago

This code panics

EnsureString(nil)
swithek commented 1 year ago

https://github.com/jellydator/validation/pull/13