- 20 Feb, 2020 1 commit
-
-
envoy-bot authored
-
- 19 Feb, 2020 1 commit
-
-
Morten Løcka authored
* Save fields in validation exception Signed-off-by:
Morten Løcka <morten.locka@entur.org> * ValidationException to StatusRuntimeException with BadRequest status details. Signed-off-by:
Morten Løcka <morten.locka@entur.org> * Extended tests with BadRequests details from validation exception Signed-off-by:
Morten Løcka <morten.locka@entur.org> * formatting and cleanup Signed-off-by:
Morten Løcka <morten.locka@entur.org>
-
- 14 Feb, 2020 1 commit
-
-
asraa authored
* add HTTP header well known type and C++ UUID Signed-off-by:
Asra Ali <asraa@google.com> * update validate.pb.go Signed-off-by:
Asra Ali <asraa@google.com> * simplify conditions Signed-off-by:
Asra Ali <asraa@google.com> * fix java build Signed-off-by:
Asra Ali <asraa@google.com> * bad test Signed-off-by:
Asra Ali <asraa@google.com> * java Signed-off-by:
Asra Ali <asraa@google.com> * check for slashes in hdr name Signed-off-by:
Asra Ali <asraa@google.com> * add more testcases Signed-off-by:
Asra Ali <asraa@google.com> * empty Signed-off-by:
Asra Ali <asraa@google.com> * define regex for http header name/value Signed-off-by:
Asra Ali <asraa@google.com> * make patterns in to well known regex Signed-off-by:
Asra Ali <asraa@google.com> * fix bazel Signed-off-by:
Asra Ali <asraa@google.com> * fix bazel maven_jar defn Signed-off-by:
Asra Ali <asraa@google.com> * remove fixes for build Signed-off-by:
Asra Ali <asraa@google.com> * fix merge mistake Signed-off-by:
Asra Ali <asraa@google.com> * encode in utf-8 when writing out Signed-off-by:
Asra Ali <asraa@google.com> * cleanup Signed-off-by:
Asra Ali <asraa@google.com> * remove unused regex definitions Signed-off-by:
Asra Ali <asraa@google.com> * add backtick Signed-off-by:
Asra Ali <asraa@google.com> * simplify header value regex as blacklist Signed-off-by:
Asra Ali <asraa@google.com> * fixup to match entire string + also fixup dependency Signed-off-by:
Asra Ali <asraa@google.com> * python regex Signed-off-by:
Asra Ali <asraa@google.com> * remove pyc Signed-off-by:
Asra Ali <asraa@google.com> * there's gotta be another way Signed-off-by:
Asra Ali <asraa@google.com> * remove autosaved pgs Signed-off-by:
Asra Ali <asraa@google.com> Co-authored-by:
Alex Konradi <akonradi@google.com>
-
- 13 Feb, 2020 1 commit
-
-
Maksim N authored
Signed-off-by:
Maksim Naumov <maksim@naumov.org>
-
- 04 Feb, 2020 1 commit
-
-
Gert van Dijk authored
Use of plaintext HTTP to Maven Central servers is not possible any longer and mandates the use of HTTPS. For more information, please refer to https://blog.sonatype.com/central-repository-moving-to-https Fixes envoyproxy/protoc-gen-validate#310 Signed-off-by:
Gert van Dijk <gertvdijk@gmail.com>
-
- 23 Jan, 2020 1 commit
-
-
Reed Fenters authored
ran into the same issue as https://github.com/envoyproxy/protoc-gen-validate/issues/271 . figured I'd add it to the README Signed-off-by:
Reed Fenters <reed@acst.com>
-
- 29 Dec, 2019 2 commits
-
-
Brice Jaglin authored
Without specific handling for maps in `javaTypeLiteralSuffixFor`, no literal suffix was ever appended, resulting in compilation error in the validator for constraints on (Java) long, float or double. This commit mimics the structure of `javaTypeFor` to infer the suffix based on whether keys or values are targeted. Signed-off-by:
Brice Jaglin <bjaglin@teads.tv> Co-authored-by:
Ryan Michela <rmichela@salesforce.com>
-
Eitan Yarmush authored
Signed-off-by:
EItanya <eitan.yarmush@solo.io> Co-authored-by:
Ryan Michela <rmichela@salesforce.com>
-
- 26 Dec, 2019 1 commit
-
-
asraa authored
* maven_jar is deprecated. move to jvm_maven_import_external * pip imports failing because python is missing Signed-off-by:
Asra Ali <asraa@google.com>
-
- 18 Dec, 2019 1 commit
-
-
Yannic authored
This prepares proto-gen-validate for `--incompatible_load_proto_rules_from_bzl`. See https://github.com/bazelbuild/bazel/issues/8922 This commit was generated by `buildifier --lint=fix --warnings=proto-native $(find . -name "BUILD" -o -name "BUILD.bazel" -o -name "*.bzl")`. Signed-off-by:
Yannic Bonenberger <contact@yannic-bonenberger.com>
-
- 03 Dec, 2019 1 commit
-
-
asraa authored
Envoy now uses RE2 as a safe regex engine instead of std::regex (envoyproxy/envoy#7878). Because PGV already requires patterns to use RE2 syntax, one option is to use RE2 for C++ patterns as well. This implements it, for use in strings, bytes, repeated items, and may key/value pattern validation. Implements #22 WIP: I ran in to difficulty creating the regex because a regex containing a null character would get cut off... for example, the ascii character test used the pattern, ^[\x00-x7f]+$, and consuming this as a string resulted in creating a null-terminated string pattern ^[ instead of the actual pattern. I think this might be a problem across most of the C++ code? That's why there's a terrible string construction in the pattern creation. Signed-off-by:
Asra Ali <asraa@google.com>
-
- 11 Nov, 2019 1 commit
-
-
William A. Rowe Jr authored
* Do not allocate/copy to a utf-32 string to count a utf-32 len. Resolves a win32 issue of missing char32_t-based codecvt implementations in their stdlib (win32 favors uchar.) Signed-off-by:
Yechiel Kalmenson <ykalmenson@pivotal.io> Signed-off-by:
William A Rowe Jr <wrowe@pivotal.io>
-
- 05 Nov, 2019 1 commit
-
-
Stephan Zuercher authored
The C++ not operator is not supported by all compilers. Use ! instead. Signed-off-by:
Stephan Zuercher <zuercher@gmail.com>
-
- 04 Nov, 2019 1 commit
-
-
Stephan Zuercher authored
* c++: recursively validate values in map fields Additionally, provides details for unimplemented validation features and adds some generated, but not executed, test cases for C++. Fixes some small errors in the Docker- and Makefiles. Signed-off-by:
Stephan Zuercher <zuercher@gmail.com> * remove Makefile fix -- shadow at master and go1.10 are not compatible Signed-off-by:
Stephan Zuercher <zuercher@gmail.com> * remove debug flag Signed-off-by:
Stephan Zuercher <zuercher@gmail.com> * recursive map validation test case, fix bug Signed-off-by:
Stephan Zuercher <zuercher@gmail.com> * fix python Signed-off-by:
Stephan Zuercher <zuercher@gmail.com>
-
- 21 Oct, 2019 1 commit
-
-
asraa authored
Signed-off-by:
Asra Ali <asraa@google.com>
-
- 10 Oct, 2019 1 commit
-
-
asraa authored
* initial not_contains validator Signed-off-by:
Asra Ali <asraa@google.com> * add README comment and fix validate.pb.go Signed-off-by:
Asra Ali <asraa@google.com> * fix test labels and proto package Signed-off-by:
Asra Ali <asraa@google.com> * generate validate.pb.go with v1.2.0 protoc-gen-go Signed-off-by:
Asra Ali <asraa@google.com> * add python not_contains Signed-off-by:
Asra Ali <asraa@google.com> * update Signed-off-by:
Asra Ali <asraa@google.com>
-
- 04 Sep, 2019 1 commit
-
-
Dhi Aurrahman authored
* cc: Convert base file name to screaming snake case This patch converts the base file name into screaming snake case instead of upper for cc macro generation. This is motivated by: INFO: From Compiling external/com_github_openzipkin_zipkinapi/zipkin-jsonv2.pb.validate.cc: In file included from bazel-out/k8-opt/bin/external/com_github_openzipkin_zipkinapi/zipkin-jsonv2.pb.validate.cc:5: bazel-out/k8-opt/bin/external/com_github_openzipkin_zipkinapi/zipkin-jsonv2.pb.validate.h:37:31: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions] ^ 1 warning generated. As reported in https://github.com/envoyproxy/envoy/pull/6985#issuecomment-526658473 . Signed-off-by:
Dhi Aurrahman <dio@tetrate.io> * Simple basename replacement Signed-off-by:
Dhi Aurrahman <dio@tetrate.io> * Remove noise Signed-off-by:
Dhi Aurrahman <dio@tetrate.io> * Remove upper, since it is not being used Signed-off-by:
Dhi Aurrahman <dio@tetrate.io>
-
- 27 Aug, 2019 1 commit
-
-
Aditya Kothari authored
Signed-off-by:
Aditya Kothari <akothari@lyft.com>
-
- 20 Aug, 2019 1 commit
-
-
Aditya Kothari authored
Signed-off-by:
Aditya Kothari <akothari@lyft.com>
-
- 15 Aug, 2019 1 commit
-
-
Cynthia Coan authored
* implement utf-8 length for c++ validation this commit implements utf-8 length string checking in C++ for validations, and updates the readme table. --- there's also a small update to the gitignore, to ignore a __pycache__ dir that was created for me when running make ci locally inside of docker. Signed-off-by:
Cynthia Coan <ccoan@instructure.com> * don't print numbers as hex in errors we will now just print the decimal representation instead of hex, because it's just more user friendly. Signed-off-by:
Cynthia Coan <ccoan@instructure.com>
-
- 14 Aug, 2019 2 commits
-
-
Yechiel Kalmenson authored
Signed-off-by:
Yechiel Kalmenson <ykalmenson@pivotal.io>
-
Aditya Kothari authored
* String, Bool, Num, Global (disabled) Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Message rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * finished string rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Duration Rules completed Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Timestamp rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Wrapper rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Comments addressed, fixed tests Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Print generated code Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Add test case Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Enum Rules added Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Tests python 3 as well Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Remaining rules Signed-off-by:
Aditya Kothari <akothari@lyft.com>
-
- 08 Aug, 2019 1 commit
-
-
Alex Konradi authored
Fix the Bazel build by updating protobuf to v3.9.1, then restructure the loading of external repositories to address #254. Signed-off-by:
Alex Konradi <akonradi@google.com>
-
- 02 Aug, 2019 2 commits
-
-
Aditya Kothari authored
* Pull MessageRules out of oneof FieldRules (#213) * add idea to gitignore Signed-off-by:
Aditya Kothari <akothari@lyft.com> * add required as a field rule to ensure nullability Signed-off-by:
Aditya Kothari <akothari@lyft.com> * unimplemented flag for c++ Signed-off-by:
Aditya Kothari <akothari@lyft.com> * add import to build bazel Signed-off-by:
Aditya Kothari <akothari@lyft.com> * ignore java Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fix syntax Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fix error Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fix java exception Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fix fail statement Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Pull message rules out Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fix tests Signed-off-by:
Aditya Kothari <akothari@lyft.com> * undo style change Signed-off-by:
Aditya Kothari <akothari@lyft.com> * removing messagerules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * use messagerules inside rulecontext Signed-off-by:
Aditya Kothari <akothari@lyft.com> * remove generated files Signed-off-by:
Aditya Kothari <akothari@lyft.com> * prevent use of non-scalar wkts with message rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Unnecessary change Signed-off-by:
Aditya Kothari <akothari@lyft.com> * add float rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * C++ support Signed-off-by:
Aditya Kothari <akothari@lyft.com> * java support Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Update docs Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Changes updated Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fixing javabuild Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Fix file permission Signed-off-by:
Aditya Kothari <akothari@lyft.com> Signed-off-by:
Aditya Kothari <akothari@lyft.com> * String, Bool, Num, Global (disabled) Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Message rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * finished string rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Duration Rules completed Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Timestamp rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Wrapper rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Comments addressed, fixed tests Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Print generated code Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Add test case Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Enum Rules added Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Tests python 3 as well Signed-off-by:
Aditya Kothari <akothari@lyft.com> * any rules Signed-off-by:
Aditya Kothari <akothari@lyft.com>
-
Sam Xie authored
Signed-off-by:
Sam Xie <xsambundy@gmail.com>
-
- 26 Jul, 2019 1 commit
-
-
Ryan Michela authored
* Stalebot configuration Signed-off-by:
Ryan Michela <rmichela@salesforce.com> * Use explicit Stale label Signed-off-by:
Ryan Michela <rmichela@salesforce.com>
-
- 23 Jul, 2019 1 commit
-
-
Yechiel Kalmenson authored
Signed-off-by:
Yechiel Kalmenson <ykalmenson@pivotal.io>
-
- 21 Jul, 2019 1 commit
-
-
Cynthia Coan authored
this adds in a regression test for the multiple_java_files option trying to generate java files even when java wasn't an output. this test breaks before the fix, but works on master since the fix is in play. Signed-off-by:
Cynthia Coan <ccoan@instructure.com>
-
- 19 Jul, 2019 2 commits
-
-
Aditya Kothari authored
Signed-off-by:
Aditya Kothari <akothari@lyft.com>
-
William A. Rowe Jr authored
On Windows we only include winsock2, not winsock Signed-off-by:
Yechiel Kalmenson <ykalmenson@pivotal.io>
-
- 18 Jul, 2019 2 commits
-
-
Cynthia Coan authored
Signed-off-by:
Cynthia Coan <ccoan@instructure.com>
-
Ryan Michela authored
Signed-off-by:
Ryan Michela <rmichela@salesforce.com>
-
- 17 Jul, 2019 2 commits
- 09 Jul, 2019 2 commits
-
-
Ryan Michela authored
* Correctly handle underscores when java multiple files is true Signed-off-by:
Ryan Michela <rmichela@salesforce.com> * s/ReplaceAll/Replace/ Signed-off-by:
Ryan Michela <rmichela@salesforce.com>
-
Ryan Michela authored
Signed-off-by:
Ryan Michela <rmichela@salesforce.com>
-
- 02 Jul, 2019 1 commit
-
-
Aditya Kothari authored
* add idea to gitignore Signed-off-by:
Aditya Kothari <akothari@lyft.com> * add required as a field rule to ensure nullability Signed-off-by:
Aditya Kothari <akothari@lyft.com> * unimplemented flag for c++ Signed-off-by:
Aditya Kothari <akothari@lyft.com> * add import to build bazel Signed-off-by:
Aditya Kothari <akothari@lyft.com> * ignore java Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fix syntax Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fix error Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fix java exception Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fix fail statement Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Pull message rules out Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fix tests Signed-off-by:
Aditya Kothari <akothari@lyft.com> * undo style change Signed-off-by:
Aditya Kothari <akothari@lyft.com> * removing messagerules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * use messagerules inside rulecontext Signed-off-by:
Aditya Kothari <akothari@lyft.com> * remove generated files Signed-off-by:
Aditya Kothari <akothari@lyft.com> * prevent use of non-scalar wkts with message rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Unnecessary change Signed-off-by:
Aditya Kothari <akothari@lyft.com> * add float rules Signed-off-by:
Aditya Kothari <akothari@lyft.com> * C++ support Signed-off-by:
Aditya Kothari <akothari@lyft.com> * java support Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Update docs Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Changes updated Signed-off-by:
Aditya Kothari <akothari@lyft.com> * fixing javabuild Signed-off-by:
Aditya Kothari <akothari@lyft.com> * Fix file permission Signed-off-by:
Aditya Kothari <akothari@lyft.com>
-
- 27 Jun, 2019 1 commit
-
-
Richard Fussenegger authored
* Changed Java UUID from Regex to FSM * Changed Java UUID validation from a regular expression to a hardcoded finite state machine. This should provide a significant speed-up. * Added UUID simple format support to Java UUID validation (the simple format is without dashes). Signed-off-by:
Fleshgrinder <fleshgrinder@users.noreply.github.com> * Fixed dash handling Signed-off-by:
Fleshgrinder <fleshgrinder@users.noreply.github.com> * Changed Java string length validation (#226) * Proof that Java is UTF-16 Signed-off-by:
Fleshgrinder <fleshgrinder@users.noreply.github.com> * Fix Java length functions Signed-off-by:
Fleshgrinder <fleshgrinder@users.noreply.github.com> * Removed UUID simple format Signed-off-by:
Fleshgrinder <fleshgrinder@users.noreply.github.com>
-
- 24 Jun, 2019 2 commits
-
-
Richard Fussenegger authored
* Changed Java email validation * Added support for quoted email addresses (as per RFC). * Added guardian around display email address extraction to execute the logic only if we are certain that it is in display format. * Changed logic to extract email address from display form. Replaced the regular expression with a simpler loop based algorithm. * Changed the email validator instance retrieval. Placed it in a lazy holder class which means that we get the instance when it is first required and keep a reference on the object for the lifetime of the program so that subsequent retrievals are faster (which are likely since it was required). No additional object is allocated because we only keep a reference on the already existing instance. Signed-off-by:
Fleshgrinder <fleshgrinder@users.noreply.github.com> * Added test cases and fixed bug Signed-off-by:
Fleshgrinder <fleshgrinder@users.noreply.github.com> * Added Lazy explanation Signed-off-by:
Fleshgrinder <fleshgrinder@users.noreply.github.com>
-
Richard Fussenegger authored
* Changed Java details * Changed `Charset.forName("UTF-8")` to `StandardCharsets.UTF_8` to avoid string construction and typos. * Removed Google `CharMatcher` dependency by adding a faster pure Java utility function to validate if a string consists solely of ASCII characters or not. However, the new function like the previous one still allows for control characters. Signed-off-by:
Fleshgrinder <fleshgrinder@users.noreply.github.com> * Optimize further Signed-off-by:
Fleshgrinder <fleshgrinder@users.noreply.github.com> * Fixed typo Signed-off-by:
Fleshgrinder <fleshgrinder@users.noreply.github.com>
-