Releases: microbus-io/dv8
Releases · microbus-io/dv8
ValidatorContext interface
New directive "oneof"
A new directive to validate strings from a set of valid values: oneof A|B|C.
Call Validate on non-struct types as well.
Make the main Validate method variadic
v0.2.1 Variadic
Apply directives on array and map values
This release introduces a breaking change.
Directives placed on an array or map field now apply to the value elements of the array or map rather than to the array or map themselves.
New directives, "arrlen" and "maplen", were introduced to check the length of the array or map.
Correctly handle types that wrap a primitive type
Such as type MyEnum int
Better detection of Validator interface
v0.1.5 Merge branch 'main' of https://github.com/microbus-io/dv8
Validator interface; toupper, tolower directives
v0.1.4 Validator interface; toupper, tolower directives
First public release
"on" and "main" directives "on" and "main" directives. Specific handler for pointers rather than blindly following to the referenced type. Better documentation. Check for zero-value of a struct.