-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
bug: don't support pydantic v2 #328
Comments
Currently, you might need to It's tricky to support both v1 and v2. |
Ref to #319 (review) We might need to refactor some parts. |
i understand. But when know i want using V2 pydantic. And cant do it with spectree. I think it would be useful to write in readme that spectree only supports version 1 including the first version from pedantic v2 |
You can close the issue if you think it is necessary, I have received my answer. I was just counting on full v2 support |
Let me create another issue to track the full v2 support. |
Describe the bug
When i use pydantic v2:
code line:
https://github.com/0b01001001/spectree/blob/master/spectree/response.py#L76
To Reproduce
Expected behavior
No response
The spectree version
spectree = "^1.2.0"
pydantic = {extras = ["email"], version = "^2.1.1"}
Additional context
You can fix it in this file:
https://github.com/0b01001001/spectree/blob/master/spectree/_pydantic.py
There we use only version 1 of pydantic and dont use the second version
The text was updated successfully, but these errors were encountered: