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

Standardize how we raise serialization warnings #1454

Open
sydney-runkle opened this issue Sep 16, 2024 · 0 comments
Open

Standardize how we raise serialization warnings #1454

sydney-runkle opened this issue Sep 16, 2024 · 0 comments
Labels

Comments

@sydney-runkle
Copy link
Member

sydney-runkle commented Sep 16, 2024

Union serializers do a pretty good job of warning, but we are relatively inconsistent with how we do this across different type serializers in pydantic-core.

Let's add more warnings for model like types, etc.

Warnings might also be more helpful with information regarding where in a nested structure we ran into an issue, like with validation errors.

See #1449 for the motivation here, as well as some additional ideas / commentary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant