Skip to content

Releases: shariarfaisal/validator

Enum logical bugfix

17 Jan 07:23

Choose a tag to compare

v1.6.0

bugfix: enum logical bugfix

Bugfix: Empty string unchecked for rest of the fields

15 Jan 15:45

Choose a tag to compare

Empty string unchecked from the condition.
If any value is required, then there must have to be added required condition in tags.

Bugfix: Empty string unchecked

15 Jan 15:41

Choose a tag to compare

Empty string unchecked from the condition.
If any value is required, then there must have to be added required condition in tags.

Logical bug fixes and code refactor

06 Jan 19:41

Choose a tag to compare

v1.3.0

ref: code refactor and logical bug fixed

Issue resoved

31 Dec 18:34

Choose a tag to compare

error property name was replaced by the title

Nested items validation failed issue fixed

31 Dec 17:09

Choose a tag to compare

v1.2.0

bugfix: nested items validation issue fixed

Struct tag title could be use as name of error message name instead of json name

31 Dec 16:28

Choose a tag to compare

v1.1.2

feat(title): Tag title will be use as name of error messages

Child items validation & Error messages update

28 Dec 20:10

Choose a tag to compare

Child items validation feature added if the value type is string or int for Map and Slice data types which was missing in the previous release

Example

type Dice struct {
  Point []int `v: "item.min=1;item.max=6"`
}

Tag key value separator update

27 Dec 04:31

Choose a tag to compare

Struct tag key-value separator updated clone(:) to equal (=) sign

// Before
type Student struct {
      GPA float32 `v:"gt:0;lt:5"`
}

// After
type Student struct {
      GPA float32 `v:"gt=0;lt=5"`
}

Bugfix: json name alternative default name added

26 Dec 17:35

Choose a tag to compare

Bug Fixed

There was an issue with the error property name. If the JSON tag is not added to the struct tag then the error key returns an empty string. This issue was solved in this release by replacing it with the default struct name.

Update

eq and ne also works for strings value which was missing in the previous release