Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

fix(pydantic): use model_validate() for metadata validation (#54)#62

Merged
pierrepo merged 1 commit intomainfrom
fix/pydantic-validation-54
Jan 21, 2026
Merged

fix(pydantic): use model_validate() for metadata validation (#54)#62
pierrepo merged 1 commit intomainfrom
fix/pydantic-validation-54

Conversation

@Essmaw
Copy link
Collaborator

@Essmaw Essmaw commented Jan 20, 2026

This PR addresses issue #54 by replacing model(**metadata) with model.model_validate(metadata) for proper Pydantic v2 validation.

@Essmaw Essmaw requested a review from pierrepo January 20, 2026 18:04
Copy link
Member

@pierrepo pierrepo left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks @Essmaw

@pierrepo pierrepo merged commit 11f10c3 into main Jan 21, 2026
1 check passed
@pierrepo pierrepo deleted the fix/pydantic-validation-54 branch January 21, 2026 08:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants