Skip to content

DM-54471: Add backward compatible fix for pydantic 1#53

Merged
mwittgen merged 1 commit intomainfrom
tickets/DM-54471
Mar 24, 2026
Merged

DM-54471: Add backward compatible fix for pydantic 1#53
mwittgen merged 1 commit intomainfrom
tickets/DM-54471

Conversation

@mwittgen
Copy link
Copy Markdown
Contributor

No description provided.

@mwittgen mwittgen requested a review from timj March 24, 2026 21:11
Copy link
Copy Markdown
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

Looks ok.

return cls.model_validate_json(data)
if hasattr(cls, "model_validate_json"):
return cls.model_validate_json(data)
else:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe add the fallback for pydantic v1 comment here.

@mwittgen mwittgen merged commit ccab3aa into main Mar 24, 2026
11 checks passed
@mwittgen mwittgen deleted the tickets/DM-54471 branch March 24, 2026 21:32
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