Dean Karn
9d03e2526a
Merge pull request #376 from noibar/add_file_validation
...
doc: add file validation documentation
7 years ago
Noi Bar
ea9cb424fd
doc: add file validation documentation
7 years ago
Dean Karn
fb72538343
Update README.md
7 years ago
Dean Karn
71510749b8
Merge pull request #375 from noibar/add_file_validation
...
Add file path validation
7 years ago
Noi Bar
f2fdb60d7d
Add file path validation
7 years ago
Dean Karn
f28cb45dc0
Update README.md
7 years ago
Dean Karn
3e51773f21
Merge pull request #363 from tengis617/fix-comment-typo
...
fixed typo in comment
7 years ago
Tengis B
8d3aa5bde2
✏️ fixed typo in comment
7 years ago
Dean Karn
ffe836d736
Expanded numeric & number validations
...
It was originally intended for these to only be used on strings, however
it makes sense to also use them if your dealing with type interface{}
so now ints and floats return true for this validation also as they are
both numeric and numbers.
closes #356
7 years ago
Dean Karn
801c8790f3
Update README.md
7 years ago
Dean Karn
9848c01055
Merge pull request #362 from jadhub/domainnamefix
...
Fix for Email - Hostname is not validated correctly #359
7 years ago
Joachim Adomeit
379fb67047
Fix for Email - Hostname is not validated correctly #359
7 years ago
Dean Karn
ee0bbdea51
increment version
7 years ago
Dean Karn
54da7fa48f
fix linting and spelling errors
7 years ago
Dean Karn
b297167b88
Merge pull request #361 from jservice-rvbd/unique-for-maps
...
Extend the unique tag to also cover map values.
7 years ago
Dean Karn
f459c64611
Merge pull request #358 from Ashtonian/patch-1
...
add missing `Engine()` to default validator for gin override example
7 years ago
James Service
d978a4b421
Undo whitespace changes from gofmt.
7 years ago
James Service
fc5fbce706
Add new unique functionality to docstring.
7 years ago
James Service
8ae3903dd3
Extend the unique tag to also cover map values.
7 years ago
Ashton Kinslow
9f62099643
add missing Engine() to default validator
...
to meet new interface requirements in gin
7 years ago
Dean Karn
14984d9132
Merge branch 'QuestofIranon-patch-1' into v9
7 years ago
Dean Karn
b5512bc1ff
Merge branch 'patch-1' of https://github.com/QuestofIranon/validator into QuestofIranon-patch-1
7 years ago
josh
073682ea75
added in more test cases and removed some redundant validation steps
7 years ago
josh
ce6284a6fc
confirm only all upper or all lower case address are valid
7 years ago
josh
6deddf27eb
proper bech32 address validation
7 years ago
josh
3df85bdcfc
p2sh validation and more tests
7 years ago
josh
60417282a4
verifies p2pkh addresses
7 years ago
josh
36d83b0b83
Added in validation function, tests, and docs
7 years ago
Dean Karn
ff1ee42e83
Update README.md
7 years ago
Dean Karn
d3984c2e0b
Update main.go
7 years ago
Dean Karn
2a8a333913
Update doc.go
7 years ago
Dean Karn
4894e4ca6c
Merge pull request #351 from kgeorgiou/v9
...
Add validation for base64 URL safe values
7 years ago
josh
ba5836f763
add bitcoin and ethereum address regexes
7 years ago
Kyriakos Georgiou
030800a855
Add validation for base64 URL safe values
7 years ago
Dean Karn
8ce234ff02
Update README.md
7 years ago
Dean Karn
b226c5e0d7
Merge pull request #350 from afranioce/v9
...
add brazilian portuguese translations
7 years ago
Afranio Martins
5186bfe8b5
add brazilian portuguese translations
7 years ago
Dean Karn
1b8c8e19cd
Merge pull request #348 from fdelbos/french-translation
...
add french translations
7 years ago
Frederic Delbos
4dbd40f597
add french translations
7 years ago
Dean Karn
150fe5b6a4
Update README.md
7 years ago
Dean Karn
34ccc97914
Merge pull request #343 from ansel1/oneof
...
Add oneof validation
7 years ago
Russ Egan
2e9adc3329
swapped mutex for rwmutex
...
similiar single-goroutine performance, slightly better concurrent performance.
7 years ago
Russ Egan
15217303f9
Add oneof validation
...
Validates that a string or number value equals one of a set of allowed values. Examples:
validator.Var(“red”, “oneof=red green”)
validator.Var(6, “oneof=6 7 8”)
7 years ago
Dean Karn
535f85221e
Update README.md
7 years ago
Dean Karn
5e036656b8
Add hostname_rfc1123 validation
7 years ago
Dean Karn
3620d3c069
update docs for FieldWithValue=>VarWithValue
7 years ago
Dean Karn
36cd0d5b69
Merge pull request #340 from glb/v9
...
Support translating field errors when field is of kind reflect.Ptr
7 years ago
Geoff Baskwill
866bd2a946
Support translating field errors when field is of kind reflect.Ptr
...
Previously, if fields were of kind `reflect.Ptr`, the translation of
validation errors used the default string, resulting in unexpected
output.
Now the default translations use the field's `Elem()` kind (for example
for `*string` the `Elem()` is `string`), resulting in much more natural
output.
7 years ago
Dean Karn
48a433ba4b
Merge pull request #336 from go-playground/correct-var-lock
...
Correct Var tagCache locking
7 years ago
Dean Karn
e00f5e092a
split out to function, defer is needed to handle panics
7 years ago