Skip to content

Releases: marrow16/valix

v1.10.4

19 Sep 15:32
f07ea76
Compare
Choose a tag to compare

General code tidying
Also fix conditional constraint v8n parse (for Others field)

v1.10.3

18 Sep 18:41
23bb1b0
Compare
Choose a tag to compare

Improved conditional constraint - ConditionalConstraint can now optionally also use an Others expression - where the wrapped constraint is only checked when the others property expression evaluates to true

v1.10.2

17 Sep 11:03
945b909
Compare
Choose a tag to compare

Improved tag constraint field abbreviating
Also added ConditionalConstraint and ConstraintSet to constraint registry (making them available as v8n tags)

v1.10.1

11 Sep 15:07
c24ef19
Compare
Choose a tag to compare

Added StopOnFirst to PropertyValidator - individual property validator can now be instructed to stop on first constraint violation.
Also, v8n tags now allow abbreviated and shortened constraint arg names

v1.10.0

10 Sep 10:31
c9f7bf5
Compare
Choose a tag to compare
  • Added Only to PropertyValidator (and v8n tags) now supports "only property" (see README)
  • Ability to create PropertyValidator using v8n tags (using NewPropertyValidator() or CreatePropertyValidator())
  • Added PropertyValidator.Validate() method
  • Minor bug fixes

v1.9.12

04 Sep 11:14
0c65bd8
Compare
Choose a tag to compare

Provider overrides

  • Improved decoder overrides (added NewDecoderFor func on interface DecoderProvider)
  • Added DefaultPropertyNameProvider - allows behaviour of struct fields to property name to be overridden
  • Added default providers nil protection

v1.9.11

03 Sep 17:49
8ebb335
Compare
Choose a tag to compare

Added RequestQueryValidate & RequestQueryValidateInto validator methods - enables request query parameters to be validated

v1.9.10

02 Sep 19:20
6dbad87
Compare
Choose a tag to compare

The ArrayOf constraint now has a field Constraints which is an optional slice of constraints that are checked for each element.
Also made ArrayConditionalConstraint available in v8n tags

v1.9.9

31 Aug 19:11
e81e87b
Compare
Choose a tag to compare

Compare constraints to other property now allows array indexing in the property path.
Also added constraints:

  • NotEmpty
  • ArrayConditionalConstraint

v1.9.8

30 Aug 15:22
cbbee0f
Compare
Choose a tag to compare

Compare constraints to other property now allows dot notation - to compare against properties up and down the object tree.