Tengis B
8d3aa5bde2
✏️ fixed typo in comment
7 years ago
Dean Karn
54da7fa48f
fix linting and spelling errors
7 years ago
Dean Karn
5e036656b8
Add hostname_rfc1123 validation
7 years ago
Dean Karn
e00f5e092a
split out to function, defer is needed to handle panics
7 years ago
Dean Karn
b962f3d7d5
Correct Var tagCache locking
7 years ago
Dean Karn
61caf9d303
add map key validation support ( #324 )
7 years ago
Aaron Lehmann
770163b1e1
Documentation fixes
...
This fixes a few documentation issues I noticed.
- Explain what Func is supposed to return.
- Remove change reference to ActualNamespace to mention StructNamespace
instead.
- Remove references to Validatable, which no longer exists.
- Fix godoc formatting.
- Delete extra text from ReportValidationErrors comment.
- Change ReportError interface definition so its arguments are named
consistently with what they do.
7 years ago
Dean Karn
0b5dc7605b
Add isdefault validation
7 years ago
Dean Karn
0f6f568263
Add contextual validation support via context.Context ( #296 )
...
* Add contextual validation support via context.Context
Added:
- RegisterValidationCtx
- RegisterStructValidationCtx
- StructCtx
- StructFilteredCtx
- StructPartialCtx
- StructExceptCtx
- VarCtx
- VarWithValueCtx
8 years ago
Dean Karn
493dfb6209
correct required tag functionality for pointers, now works like old `exists` tag.
8 years ago
Dean Karn
506cc5da56
Add Filter logic
8 years ago
Jawher Moussa
73e8e76de2
Fix universal translator imports so that goimports doesn't get remove them
...
Running goimports on the codebase deletes all the imports of "github.com/go-playground/universal-translator".
The fix consists of explicitly qualifying the import statements with ut.
8 years ago
Dean Karn
a7ca4a1d32
add default translations for "en"
...
- need help creating more.
8 years ago
Dean Karn
532878b008
initial translation/custom error code
8 years ago
joeybloggs
ecad6333b1
increase dive tag performance.
9 years ago
joeybloggs
d9bfef9fe0
speed up structPartial and structExcept string parsing
9 years ago
joeybloggs
8d0fd80a80
removed creation of a couple stack variables and creation of errors
9 years ago
joeybloggs
98dee40973
perf updates all around!
9 years ago
joeybloggs
8c60a612c5
code coverage back to 100% + some code cleanup
9 years ago
joeybloggs
5fedd8c08a
buffer errTag + errs array.
9 years ago
joeybloggs
1ff58be284
finish conversion of test + some fixes.
9 years ago
joeybloggs
e0e1af6a61
working instance
9 years ago