-
Notifications
You must be signed in to change notification settings - Fork 27
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
♻️ directorv2 API schema models moved to models-library #4560
♻️ directorv2 API schema models moved to models-library #4560
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4560 +/- ##
========================================
- Coverage 85.6% 84.6% -1.1%
========================================
Files 1007 842 -165
Lines 43186 38635 -4551
Branches 1001 495 -506
========================================
- Hits 36996 32701 -4295
+ Misses 5961 5827 -134
+ Partials 229 107 -122
Flags with carried forward coverage won't be shown. Click here to find out more.
|
67f587d
to
2e53571
Compare
Code Climate has analyzed commit 2e53571 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a rule of thumb I would not move things away from director-v2
. Especially if they are only used internally.
What do these changes do?
This PR moves the pydantic models in the
director-v2
API (i.e.models/schemas
) tomodels_library.api_schemas_directorv2
. This way both server and client can share these models.Changes only affect the
director-v2
andmodels_library
packages and the corresponding clients (e.g.web-server
orapi-server
will be done in separate PRs).♻️ Moves
directorv2
's schemas tomodels-library.api_schemas_director_v2
and leaves in the service only domain models.@sanderegg please follow up this PR by reviewing the
openapi.json
and the models inmodels_library.api_schemas_directorv2
. After ♻️Maintenance: remove unused routes from director v2 #4462 the OAS changed but the openapi.json was not updated. Could you please have a look?.Related issue/s
How to test
packages/models-library/tests/test__models_examples.py
DevOps
None