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
Validation error does not indicate type #7911
Open
1 task done
chbndrhnns opened this issue
Oct 24, 2023
· 2 comments
· May be fixed by pydantic/pydantic-core#1276
Open
1 task done
Validation error does not indicate type #7911
chbndrhnns opened this issue
Oct 24, 2023
· 2 comments
· May be fixed by pydantic/pydantic-core#1276
Labels
Comments
chbndrhnns
added
bug V2
Bug related to Pydantic V2
pending
Awaiting a response / confirmation
labels
Oct 24, 2023
sydney-runkle
added
feature request
and removed
bug V2
Bug related to Pydantic V2
pending
Awaiting a response / confirmation
labels
Oct 24, 2023
Hi @chbndrhnns, Thanks for reporting this. I think it's a reasonable ask, and I'd be happy to review a PR making things more clear. I think the validation error message could be a bit more specific as well. |
Skimming through the code, I noticed this requires changes to |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initial Checks
Description
The test below fails with an error that is confusing as it is not giving an indication of the incorrect origin type, it contains just the class name without the fully qualifying class. My input is a "URL", so I consider "URL input should be a string or URL" imprecise.
Would it be possible to distinguish between internal and external types somehow, maybe only in case of a naming conflict?
Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: