-
Notifications
You must be signed in to change notification settings - Fork 26
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
♻️ Is3515/ deprecates servicelib.extract_and_validate
#3691
♻️ Is3515/ deprecates servicelib.extract_and_validate
#3691
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3691 +/- ##
========================================
+ Coverage 83.2% 84.4% +1.2%
========================================
Files 848 884 +36
Lines 35603 37551 +1948
Branches 787 785 -2
========================================
+ Hits 29634 31718 +2084
+ Misses 5759 5623 -136
Partials 210 210
Flags with carried forward coverage won't be shown. Click here to find out more.
|
78a79e9
to
e1e41da
Compare
servicelib.extract_and_validate
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.
looking nice.
Question: will this already speedup the boot time?
57c0d05
to
51e0b31
Compare
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.
Great! very much looking forward to removing these old things!
Can you just double check my 2 comments before merging. thanks!
51e0b31
to
0743d7a
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What do these changes do?
The main goal is to remove the dependency from
openapi-core
introduced inservicelib.aiohttp
. As a first PR, this will replaceservicelib.rest_utils.extract_and_validate
by pydantic models that validate requests fromserviceslib.aiohttp.requests_validation
servicelib.rest_utils.extract_and_validate
from all services except webserver'sstorage
plugin (will do in a separate PR)storage
plugin:opeapi-storage.yml
and creates autogeneratorapi/specs/webserver/scripts/openapi_storage.py
storage_schemas
pydantic modelsextract_and_validate
from this modulepytest_simcore.pydantic_models.iter_model_examples_in_module
Related issue/s
rest_utils.extract_and_validate
How to test
Checklist
make openapi.json
(no change)