Releases: davebaol/hrb-validator
Releases · davebaol/hrb-validator
Small fix and optimization
- Report mismatched reference error correctly
- Scan scopes via iteration instead of tail recursion
Make user-defined validators run in their definition scope
- [FIX] Run user-defined validators in their definition scope
- Scope refactoring: use a scope chain in place of a scope stack
Embedded references and Golang style union types
- 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 - Say hello to deep equal
- 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 - It's all about references
- New capability to reference paths, constants and validators
- New branch validator
defto create a scope for constants and validators reachable by the child and all its descendants via references - The signature of branch validator
callhas changed