Skip to content

v1.0.0

Compare
Choose a tag to compare
@guiferpa guiferpa released this 08 Feb 17:36
· 41 commits to master since this release

Support validations

  • Shallow validate (Validation on first layer from struct)
  • Deep validate (Validation on behind of first layers from struct)
  • Slice validate (Validation with slice or array in any level from struct)

Support rules

  • Required (Verified if the field got some value)
  • Enum (Verified the field if given some default values the got value is equals which one)
  • Min (Verified if the field got some value higher that given parameter)
  • Max (Verified if the field got some value less that given parameter)
  • Min bound (Verified if the field got some string length higher that given parameter)
  • Max bound (Verified if the field got some string length less that given parameter)

Support custom rules to validate