Skip to content
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

feat(deps): pydantic 1.x.x to 2.x.x migration #292

Merged
merged 9 commits into from
Dec 4, 2023

Conversation

OmarAlJarrah
Copy link
Contributor

📝 Description

🔗 Related Issues

@OmarAlJarrah OmarAlJarrah requested a review from a team as a code owner November 30, 2023 14:10
Omar Al-Jarrah added 7 commits December 3, 2023 22:10
Unnecessary dependencies removed from the `requirements-dev.txt` file and moved into a newly created `requirements-test.txt` file. Also, redundant imports in `test_api_client.py` have been removed. This refactoring was done to segregate development and testing dependencies, enhancing maintainability.
Unnecessary dependencies removed from the `requirements-dev.txt` file and moved into a newly created `requirements-test.txt` file. Also, redundant imports in `test_api_client.py` have been removed. This refactoring was done to segregate development and testing dependencies, enhancing maintainability.
Added detailed descriptions and examples of usage in the docstring for the `RequestHeaders` class and its method `unwrap` in `model/api.py`. These additions aim to provide clearer insights into the role of the class and its method, enhancing readability and facilitating the developers' understanding.
Changed the import statement of ValidationError from 'from pydantic.error_wrappers import ValidationError' to 'from pydantic import ValidationError' in test_pydantic_model.py. This change makes the import more general and less dependent on the internal structure of the pydantic library.
Added an empty line at the end of the class docstring field in `expediagroup/sdk/core/model/api.py`. This improves readability without altering functionality or structure of the codebase.
Removed a debugging print statement from the datatype_manager.py file. This was an artifact left behind from testing, and its removal does not affect functionality but reduces unnecessary console output during execution.
mohnoor94
mohnoor94 previously approved these changes Dec 4, 2023
@OmarAlJarrah OmarAlJarrah merged commit 47b73bf into main Dec 4, 2023
2 checks passed
@OmarAlJarrah OmarAlJarrah deleted the OmarAlJarrah/pydantic-2-migration branch December 4, 2023 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants