|
|
|
@ -121,11 +121,6 @@ Here is a list of the current built in validators: |
|
|
|
|
gt=0 will be applied to [] |
|
|
|
|
[]string will be spared validation |
|
|
|
|
required will be applied to string |
|
|
|
|
NOTE: in Example2 if the required validation failed, but all others passed |
|
|
|
|
the hierarchy of FieldError's in the middle with have their IsPlaceHolder field |
|
|
|
|
set to true. If a FieldError has IsSliceOrMap=true or IsMap=true then the |
|
|
|
|
FieldError is a Slice or Map field and if IsPlaceHolder=true then contains errors |
|
|
|
|
within its SliceOrArrayErrs or MapErrs fields. |
|
|
|
|
|
|
|
|
|
required |
|
|
|
|
This validates that the value is not the data types default value. |
|
|
|
|