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
Update to pydantic v1 #110
Update to pydantic v1 #110
Conversation
a47401c
to
a81b9b4
Compare
Latest commit fixes #111, re-instating the commented-out validator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cant see any issues with this, thanks @CasperWA!
Cheers. I still want to go through all validators, see what can be updated according to the new v1 of |
I am having a hard time understanding why the tests related to |
I have pin-pointed it to the |
Figured it out. It was a matter of hard-coding top-level non- |
@ml-evs I think this is ready for review + merge. I suggest any further |
Any idea why pre-commit is failing for the openapi generation? I can't match the diff we get from the CI... (seems to be happening to a few PRs) |
No idea. It is weird. But as long as the |
@CasperWA Can you fix the conflicts so that we can get this merged? |
Remove UrlStr validator for meta -> query -> representation. Set dependency for pydantic to ~=1.2
Update info for json_diff.sh message
Include minor corrections. Add validator for AvailableApiVersion.version.
7c224a0
to
b8ab5b8
Compare
Hereby done. The pre-commit is still failing, specifically the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the same behavior (i.e. it works locally) so happy to merge this and chalk it up to one of life's mysteries...
Thanks again @CasperWA!
Thanks for checking @ml-evs ! |
Fixes #101
Fixes #111
So far, this PR fixes the server so that it runs, pass all tests (locally) as well as the
optimade-validator
.The whole of the server and all models should still be run through to check what else should be upgraded. E.g., introduce root validators, utilize new constrained types and more.