-
Notifications
You must be signed in to change notification settings - Fork 4
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
Bumped pydantic to v2 #10
Conversation
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.
Thanks for the contribution!
Could you please check that there are no instances of deprecated methods such as the following?:
.parse_obj()
/.parse_raw()
.dict()
/.json()
If run the tests you should get a warnings report at the end, telling you what's deprecated.
@RedRoserade Many thanks for the inputs. I've indeed run the tests and all pass except one with the following error
This is related to pydantic v1 |
Thanks for having a look, I know that Pydantic v2 is pickier when it comes to these situations. I assume this is the failing test? Because I find it odd that it considers
I have a feeling it's because the decorator is not using I will try to have a look later today. |
Many thanks for the inputs. I've tried to make it work and tried migrate to v2 decorator validate_call methods but no success. Did you manage to have a look? |
We manage to make it work with v2 decorator |
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.
Approved! Thanks for taking care of this.
Please make sure to squash the commits before merging.
Also, please make sure to do a major version bump, because the changes here are backwards-incompatible (in terms of dependencies). |
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
…rse_raw_as with validate_json Signed-off-by: Tiago Santana <[email protected]>
Signed-off-by: Tiago Santana <[email protected]>
d75d1c6
to
48e80a8
Compare
Signed-off-by: Tiago Santana <[email protected]>
…s description Signed-off-by: Tiago Santana <[email protected]>
pydantic
to version^2.5.3
>=2,<3
None
inOptional
fieldspydantic.v1
compatibility inpydantic.tools
andvalidateFunction
decoratorvalidateFunction
decorator with v2validate_call
decorator