Oudwins / zog

Go with Zod inspired simple schema validation
MIT License
153 stars 5 forks source link

feat: better errors #17

Closed Oudwins closed 1 month ago

Oudwins commented 1 month ago

BREAKING-CHANGE: error struct is now an interface

BREAKING-CHANGE: z.Message() now only takes a string. z.MessageFunc() can take a function

BREAKING-CHANGE: All z.Errors functions have changed. I still don't recommend you use them since they might still change in the future