-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Pydantic V2 incompatibility: FieldInfo object does not have the attribute 'type_' #189
Comments
I got this issue. And my workaround is patch two methods: patch_crudrouter
Injection
|
it works
|
It helps: #189 (comment) |
I took this part for my diploma)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Statement
Incompatible with pydantic v2. Unable to start containerized uvicorn due to AttributeError.
This occurs because pydantic's FieldInfo object does not have the attribute 'type_'
Please see: pydantic.fields.FieldInfo
This can be observed by adding the following line on startup:
print(Potato.__fields__)
The output follows:
Code
Error
The text was updated successfully, but these errors were encountered: