-
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
⬆️ Upgrade API server (Pydantic v2) #6511
⬆️ Upgrade API server (Pydantic v2) #6511
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## pydantic_v2_migration #6511 +/- ##
=======================================================
Coverage ? 84.1%
=======================================================
Files ? 847
Lines ? 30043
Branches ? 1809
=======================================================
Hits ? 25290
Misses ? 4452
Partials ? 301
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -25,10 +25,6 @@ define _create_and_validate_openapi | |||
export API_SERVER_DEV_FEATURES_ENABLED=$1; \ | |||
python3 -c "import json; from $(APP_PACKAGE_NAME).main import *; print( json.dumps(the_app.openapi(), indent=2) )" > $@ | |||
|
|||
# patching version until tools adapted | |||
@sed -i 's/"openapi": "3.1.0",/"openapi": "3.0.2",/g' $@ |
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.
Not needed anymore
@@ -15,8 +15,8 @@ reqs: ## compiles pip requirements (.in -> .txt) | |||
|
|||
|
|||
# specification of the used openapi-generator-cli (see also https://github.com/ITISFoundation/openapi-generator) | |||
OPENAPI_GENERATOR_NAME := itisfoundation/openapi-generator-cli-openapi-generator-v4.2.3 | |||
OPENAPI_GENERATOR_TAG := v0 | |||
OPENAPI_GENERATOR_NAME := openapitools/openapi-generator-cli |
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.
Official tool used for validation
Quality Gate passedIssues Measures |
What do these changes do?
They upgrade the API server (Pydantic v2).
Related issue/s
How to test
Dev-ops checklist