Skip to content

v0.5.0

Compare
Choose a tag to compare
@n9-machine-user n9-machine-user released this 29 Oct 14:16
· 24 commits to refs/heads/main since this release
a1ec895

What's Changed

🚀 Features

  • feat: Add file system rules (#37) @nieomylnieja

    Added 4 new rules: StringFileSystemPath, StringFilePath, StringDirPath and StringMatchFileSystemPath, 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 calls govy.Validator.Validate on each element and returns govy.ValidatorErrors.

🧰 Maintenance

4 changes