validgo v1.1.10 — Validation Improvements
New Release
validgo has been updated with several improvements to make validation more flexible and validation errors more consistent.
What’s New
-
Added support for
required_if -
Added support for
eqfield -
Improved field name mapping from Go struct fields to JSON field names
-
Improved validation error message handling
-
Improved compatibility with custom validation rules from
go-playground/validator -
Kept the package generic and reusable across different request structures
Testing
The new validation features have been covered with unit tests, including:
-
Conditional required fields
-
Field comparison validation
-
JSON field name mapping
-
Validation error responses
The package has also been tested in a real project integration with KasirinPOS.
Release
Version: v1.1.10