Skip to content

fix require rule and add notNull rule

Compare
Choose a tag to compare
@lefuturiste lefuturiste released this 25 May 12:05
· 4 commits to master since this release

[BREAKING CHANGES]

fix: the require rule will accept null values
feat: add notNull rule

before this version, a field that was present but with a null value caught the attention of the 'required' rule.
Now with this fix the 'required' rule will only check if a certain key is present in the params or payload.

change requested by @thibaultjunin