v0.5.0
n9-machine-user
released this
29 Oct 14:16
·
24 commits
to refs/heads/main
since this release
What's Changed
🚀 Features
- feat: Add file system rules (#37) @nieomylnieja
Added 4 new rules:
StringFileSystemPath
,StringFilePath
,StringDirPath
andStringMatchFileSystemPath
, which help verify file system paths and patterns. - feat: Add StringGitRef rule (#35) @nieomylnieja
Added
StringGitRef
validation rule which checks if a string is a valid git reference according to the rules defined by git-check-ref-format. - feat: Add benchmarks (#32) @nieomylnieja
Added benchmarks to builtin rules.
- feat: Support validating slices of objects (#30) @nieomylnieja
Added new validator function for slices:
govy.Validator.ValidateSlice
. It can be used to validate a slice of values, where each value has the same type as the validator's type constraint. Internally it callsgovy.Validator.Validate
on each element and returnsgovy.ValidatorErrors
.