Skip to content

Releases: mfaizudd/nodebat-go

v0.4.1

24 May 00:30
Compare
Choose a tag to compare
  • Time validation will now attempts to parse anything into time by converting it first into string

Full Changelog: v0.4.0...v0.4.1

v0.4.0

24 May 00:22
Compare
Choose a tag to compare
  • Re-added Min, Max, and Range using int64 by default
  • Validation builders now attempt to parse every input into the correct type
  • Validation builders no longer returns invalid_type when a type is not supported, but returning invalid_integer, invalid_float and invalid_time instead

Full Changelog: v0.3.2...v0.4.0

v0.3.2

23 May 09:24
Compare
Choose a tag to compare

Eearly abort if a field already has error

Full Changelog: v0.3.1...v0.3.2

v0.3.1

23 May 09:09
Compare
Choose a tag to compare

Add support for pointer types for xxInt, xxUint, and xxFloat validators. This way, we can use chained required and minint in one validation:

v.Builder("score", s.Score).Required().MinInt(1)

Full Changelog: v0.3.0...v0.3.1

v0.3.0

01 May 08:15
Compare
Choose a tag to compare

Changes:

  • MinDate, MaxDate and BetweenDate in builder can now parse string with layouts in the following order:
    • RFC3339
    • yyyy-MM-dd

Breaking changes:

  • validateType is now private as I don't see anyone would use it

Full Changelog: v0.2.0...v0.3.0

v0.2.0

22 Apr 07:52
Compare
Choose a tag to compare
  • Separated Min, Max and Range into:
    • Int validations (MinInt, MaxInt, and RangeInt)
    • Uint validations (MinUint, MaxUint, and RangeUint)
    • Float validations (MinFloat, MaxFloat, and RangeFloat)

v0.1.6

24 Mar 01:08
Compare
Choose a tag to compare

IsPhone now reject string that does not start with a '+' or '0'