Add annotation response status#188
Conversation
- param and resource de/serialization uses Jackson configuration - schema generation used Enum.name(), should use Jackson instead
- may enhance ServiceException with extra fields - limit values to simple objects (nor array nor collection) - add extra fields in error body - add unit tests - note: add test dependency to JSONassert, license Apache 2.0
Fix inconsistent enum constant names between schema and serialization
Use TreeMaps in SwaggerGenerator to ensure stable openapi.json output
- fixes multiple CVEs - force base64 variant MIME_NO_LINEFEEDS on ServletRequestParamReader
- updates lots of very outdated deps - Requires minor adjustments to generator for comparison
Dependency updates
Replace API explorer with developers.google.com
…elds May add extra fields in ServiceException
- change groupId of the artifacts - ignore test-compat during build: the tests fails because the switch to the new gradle plugin is required (com.google.cloud.tools:appengine-gradle-plugin) but this change is complex
Switch to altirnao project management
- adds a method in ServiceException to put an extra field value that may be unsafe (array, List, Map, ...) - adds a unit test
May put any kind of extra field value
- Released 2.2.1 to aodocs.jfrog.io - Change version to 2.2.2
Use standard object writer for errors
Use setHeader for X-Frame-Options in ApiProxyHandler to avoid conflict
Include the package 'com.google.thirdparty' in the list of packages to relocate.
- Strip out all information about internal implementation in the error message.
…alid_json Use proper ServiceException when impossible to parse json input.
Update dependencies and remove deprecations
… by default) - Allow "custom" ConfiguredObjectMapper - Add many test cases for Strings in containers
- Enable support for java.util.Optional (jackson-datatype-jdk8) - Enable support for parameter names for constructor detection on deserialization (jackson-module-parameter-names)
Improve Java 8 support in (de)serialization
Fix handling of empty strings in maps (should be included in response by default)
- add actions to create API client source code locally when the Google API client code generator is installed (command generate_library)
- add python and the code generator for the unit test of the API client code generation
Tools: adds actions to create client code
- Ignore test when the tool is not installed (instead of making it successful) - Add new values in discovery file to fix package names
- add the annotation value responseStatus in ApiMethod to define a custom response status (other than 200 204 if there is no content) - add unit tests
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
Codecov Report
@@ Coverage Diff @@
## master #188 +/- ##
============================================
+ Coverage 80.06% 82.51% +2.45%
- Complexity 1715 1850 +135
============================================
Files 159 161 +2
Lines 5718 6710 +992
Branches 754 883 +129
============================================
+ Hits 4578 5537 +959
- Misses 856 859 +3
- Partials 284 314 +30
Continue to review full report at Codecov.
|
This change is