Skip to content

Releases: microbus-io/dv8

ValidatorContext interface

28 Jan 18:56

Choose a tag to compare

Added the option for structs to implement ValidateContext(ctx context.Context) error in addition to Validate() error

New directive "oneof"

07 Apr 23:16

Choose a tag to compare

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

31 Mar 23:02

Choose a tag to compare

Apply directives on array and map values

29 Mar 23:28

Choose a tag to compare

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

24 Mar 21:44

Choose a tag to compare

Better detection of Validator interface

24 Feb 03:04

Choose a tag to compare

v0.1.5

Merge branch 'main' of https://github.com/microbus-io/dv8

Validator interface; toupper, tolower directives

21 Feb 23:09

Choose a tag to compare

v0.1.4

Validator interface; toupper, tolower directives

First public release

21 Feb 20:36

Choose a tag to compare

"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.