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

Update to pydantic v2 #64

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Update to pydantic v2 #64

merged 1 commit into from
Nov 9, 2023

Conversation

breathe
Copy link

@breathe breathe commented Nov 5, 2023

It looks like its a simple matter to upgrade to pydantic v2.

@breathe breathe requested a review from povilasb as a code owner November 5, 2023 06:09
@@ -1,11 +1,11 @@
from typing import Generic, TypeVar

from pydantic.generics import GenericModel
from pydantic import BaseModel
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, doesn't look like a lot of changes :)

But I do want to be able to target both pydantic v1 and v2 models when translating to zod declarations.

I'll tinker with this tomorrow.

Thanks 🙌

@povilasb
Copy link
Collaborator

povilasb commented Nov 8, 2023

Something may be coming out of pydantic folks as well: https://twitter.com/samuel_colvin/status/1721876322316865699 :)

Copy link
Collaborator

@povilasb povilasb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙌

Will implement testing for both pydantic v1 and v2 on top of this.

@povilasb povilasb merged commit a552246 into argyle-engineering:main Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants