-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/1204/247 api client [Spike] #268
Conversation
Unit Test Results 399 files ±0 399 suites ±0 11m 13s ⏱️ -53s For more details on these failures, see this check. Results for commit 3019512. ± Comparison against base commit 70271b5. ♻️ This comment has been updated with latest results. |
Codecov Report
@@ Coverage Diff @@
## feature/1204-api-client #268 +/- ##
===========================================================
+ Coverage 67.51% 67.53% +0.01%
===========================================================
Files 717 717
Lines 15749 15738 -11
Branches 1051 1049 -2
===========================================================
- Hits 10633 10628 -5
+ Misses 4633 4628 -5
+ Partials 483 482 -1
Continue to review full report at Codecov.
|
What this PR changes/adds
Add generated REST client module, and use it system tests.
Fix serialised classes that were not compatible with Swagger OpenAPI generator.
Why it does that
Further notes
Several classes needed to be updated as they used Jackson patterns that are not compatible with Swagger generator. That is, the OpenAPI definition was previously broken.
Permission
andDuty
: stop usingJsonTypeName
. This type of JSON inheritance is only useful when the superclass is used in API. Here only subclasses are used in API, and Swagger generator does not handle this case. See Generating definition for polymorphic types when only subclass is used swagger-api/swagger-core#4181PolicyType
stop using custom deserialisation code. This is not compatible with Swagger generatorDataPlaneInstance
andDataPlaneInstanceImpl
: Added annotations so that Swagger generator detects JSON inheritance scenario.Linked Issue(s)
#247
Checklist
no-changelog
)