You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mishraomp I can try to carve out some time tomorrow. We've updated this here: bcgov/wps#3028
I'll be less familiar with your domain models so that will require some extra testing from your team but as a short summary, what I found was:
Optional fields set to None by default are more strict on type annotations
Datetime format has changed to expect the Zulu "Z" notation
parse_obj -> model_validate if you're using that anywhere
The text was updated successfully, but these errors were encountered:
Already completed elsewhere by @conbrad.
WPS PR
bcgov/wps#3028
--- copy/paste ---
conbrad commented 27 minutes ago
@franTarkenton or @conbrad do you have some time to help us and move from pydantic from v1 to v2? cc @DerekRoberts
@mishraomp I can try to carve out some time tomorrow. We've updated this here: bcgov/wps#3028
I'll be less familiar with your domain models so that will require some extra testing from your team but as a short summary, what I found was:
Optional fields set to None by default are more strict on type annotations
Datetime format has changed to expect the Zulu "Z" notation
parse_obj -> model_validate if you're using that anywhere
The text was updated successfully, but these errors were encountered: