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

Updates for backend v4.x compatibility and Pydantic v2.x #47

Closed
wants to merge 1 commit into from
Closed

Conversation

JeffreyFG
Copy link

Pydantic has seriously changed its syntax in version 2.X and the model.py needed to be updated to maintain functionality. Marking a property as optional is no longer sufficient to make property truly optional. "Optional[] = None" is now what is required to make something truly optional. I have updated many of the different properties in the model.py in response to this change. Also some of the previously optional properties are no longer allowed by the v4.x backend, these have been marked as such however have not been removed because it is uncertain how this will affect backwards compatibility.

…l.py needed to be updated to mantain funcitonality. Marking a property as optional is no longer

sufficient to make property truly optional. "Optional[<type>] = None" is now what is requried to make somthing truly optional. I have updated many of the different
properties in the model.py in response to this change. Also some of the previously optional properties are no longer allowed by the v4.x backend, these have been marked
as such however have not been removed because it is uncertain how this will affect backwards compatibility.
@dylanmcreynolds
Copy link
Member

Thanks! This issue was addressed this week already in #46 and release in v0.4.2.

I'll go ahead and close this PR.

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