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

Implement Pydantic for Enhanced Object Mapping #129

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BoggerByte
Copy link

This pull request replaces hardcoded object mapping methods with Pydantic models, enhancing flexibility and readability.

Changes Made

  • Consolidated object mapping methods from_dict and to_dict into a unified approach leveraging Pydantic's model capabilities.
  • Add some missing type annotations.
  • Addressed a bug related to models default values.

This PR resolves #128 and aligns the project with best practices for object mapping and data validation using Pydantic.
Your feedback and review are highly appreciated!

  • pytest passed
  • mypy no errors
  • ruff no errors

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.

Enhancement: Implement Object Mapping Using Pydantic / Msgspec
1 participant