-
Notifications
You must be signed in to change notification settings - Fork 19
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
Upgrading to Pydantic 2 #18
Comments
As a stopgap/quick fix, could use the compat API that Pydantic v2 still provides? https://docs.pydantic.dev/2.0/migration/#continue-using-pydantic-v1-features e.g. |
I'm going to bump this again. I've tried going through and using pydantic.v1 and whilst that works for this library alone, when trying to use this in my own project post Pydantic v2 errors come thick and fast. I think most of the problems come from the following but I'm struggling with how to fix this so that various parts of Json serialization and validation all work in the Pydantic v2 setting. This is holding me back and I'm tearing my hair out. I suspect I will have to dump all reliance on LNURL library and recreate the functionality I need only.
|
hey i would love to work on this, but i am still busy with other todos, but at some point this has to be done |
I was trying to upgrade a project of mine which uses LNURL to Pydantic 2 and FastAPI 100 and I hit a snag.
I've tried going through the upgrade procedure on my own fork of this repo but I'm hitting a ton of errors when running the
bump-pydantic
tool (which worked nicely on a couple of my own projects).https://docs.pydantic.dev/2.0/migration/
I'm not sure I have the skilz needed to make this work. Just wondering if anyone here has some advice?
The text was updated successfully, but these errors were encountered: