Commit Graph

161 Commits (bde478f9466b5371375581708adf1b77acd08b72)

Author SHA1 Message Date
Dean Karn 38bfb46b5a fix required_* 5 years ago
Dean Karn cc25246f01 fix required_without_* 5 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 b962f3d7d5 Correct Var tagCache locking 7 years ago
Dean Karn b1f51f36f1
Correct consequtive or logic (#330) 7 years ago
Dean Karn 61caf9d303
add map key validation support (#324) 7 years ago
Dean Karn 0b5dc7605b Add isdefault validation 7 years ago
Dean Karn 0f6f568263 Add contextual validation support via context.Context (#296) 7 years ago
Dean Karn fb68f39656 Add Access to Field Name from FieldLevel (#284) 8 years ago
Dean Karn 077c3830f3 Correct Namespace when array or map of structs 8 years ago
Dean Karn 49fccadad1 correct structonly functionality 8 years ago
Dean Karn 4e43fa1562 change field cache to array 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
Dean Karn cddc415625 perf enhancements + corrected issue with or's 8 years ago
Dean Karn a7ca4a1d32 add default translations for "en" 8 years ago
Dean Karn 532878b008 initial translation/custom error code 8 years ago
joeybloggs 3e196d49c6 saving some bytes uint8 vs int 8 years ago
joeybloggs b2c8f66e7b why pass the Field names, they already belong to the namespaces... 8 years ago
joeybloggs 6765805f88 continuing perf optimizations 8 years ago
joeybloggs 27b607d6ad avoid a couple of dive allocations 8 years ago
joeybloggs ecad6333b1 increase dive tag performance. 8 years ago
joeybloggs dcdba454d7 some variable cleanup 8 years ago
joeybloggs a8f7aaba72 remove TODO: tried it, only helped with 1 allocation, not worth the overhead and potential contention 8 years ago
joeybloggs f581a2d517 reuse field 8 years ago
joeybloggs 98dee40973 perf updates all around! 8 years ago
joeybloggs 8c60a612c5 code coverage back to 100% + some code cleanup 8 years ago
joeybloggs 5fedd8c08a buffer errTag + errs array. 8 years ago
joeybloggs 1ff58be284 finish conversion of test + some fixes. 8 years ago
joeybloggs 3bf69e2bbd converting tests 8 years ago
joeybloggs 7e731afde9 field name updates 8 years ago
joeybloggs e0e1af6a61 working instance 8 years ago
joeybloggs 7a080ada5b Fix issue with omitempty combined with nullable types in combination with a default static value set as the value 8 years ago
joeybloggs 43f7b7d61a save some bytes 8 years ago
joeybloggs 4ce4d1cd71 gain another 5% on average by changing tag type from bool's to enum 8 years ago
joeybloggs 330b12dacd Phase 1 optimization complete, Phase 2 ( Warm liquid goo phase ) commencing 8 years ago
joeybloggs 210684a828 code cleanup + add missing tag cache with FieldWith func 8 years ago
joeybloggs c0a414dc9e initial un-refined new caching system 8 years ago
joeybloggs 5c8ad6a1a9 only check struct validity once 8 years ago
joeybloggs f38559b489 Update checking unexpected fields for Go 1.6 https://tip.golang.org/doc/go1.6#reflect 9 years ago
joeybloggs 0862513fbf Add some string check optimizations 9 years ago
joeybloggs 0b533f264c Only set namespace prefix when using FieldNameTag 9 years ago
joeybloggs afbcf59553 Add FieldNamespace and NameNamespace 9 years ago
joeybloggs e019c28542 Add struct field + associated tags caching 9 years ago
joeybloggs 94182a2199 init struct cache changes 9 years ago
joeybloggs b0bd08d7c8 Micro optimization in Tag Cache 9 years ago
joeybloggs cab69bdd13 Add minor optimization for structonly & nostructlevel checks 9 years ago
joeybloggs 24c1c6819f Add nostructlevel tag 9 years ago
joeybloggs 59859969c6 Fix issue with structOnly + struct level validation 9 years ago