Skip to content

Releases: davebaol/hrb-validator

Small fix and optimization

06 Jun 20:29

Choose a tag to compare

  • Report mismatched reference error correctly
  • Scan scopes via iteration instead of tail recursion

v0.2.3...v0.2.4

Make user-defined validators run in their definition scope

05 Jun 14:06

Choose a tag to compare

  • [FIX] Run user-defined validators in their definition scope
  • Scope refactoring: use a scope chain in place of a scope stack

v0.2.2...v0.2.3

Embedded references and Golang style union types

04 Jun 08:03

Choose a tag to compare

  • Support union types
  • Support embedded references for objects and arrays
  • Support deep references to variable properties
  • Remove type options (embedded references make it useless)
  • Support backward references inside scope definition
  • Throw/catch errors only if necessary (no useless stacktrace creation)
  • Some fixes and performance improvements

v0.2.1...v0.2.2

v0.2.1 - Say hello to deep equal

19 May 20:26

Choose a tag to compare

  • Add deep comparison capability to equals validator
  • Add signature (info with name and argument descriptors) to all validators
  • Add support for non referenceable arguments like scope in def
  • Fix missing support for references in if, alter and onError validators
  • Signature of alter has changed
  • Remove non standard isDate validator
  • Now null is allowed for type any
  • Improve error checking
  • Standardize tests for higher coverage

v0.2.0...v0.2.1

v0.2.0 - It's all about references

12 May 11:59

Choose a tag to compare

  • New capability to reference paths, constants and validators
  • New branch validator def to create a scope for constants and validators reachable by the child and all its descendants via references
  • The signature of branch validator call has changed

v0.1.3...v0.2.0

v0.1.3

04 May 17:17

Choose a tag to compare

  • Improve argument checking for bridged leaf validators cf993e6
  • Optimize bridged validators that support any additional non-string type 8b07d99