Skip to content
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

refactor!: pydantic v2 #59

Merged
merged 10 commits into from
Apr 29, 2024
Merged

Conversation

fubuloubu
Copy link
Contributor

@fubuloubu fubuloubu commented Apr 24, 2024

Refactors to use pydantic v2 API and updates most of the other pins to be more recent versions (removed dateutil)

Resolves issues with AnyURL by leveraging a trick that creates a field which uses it for validation, but retains it as a string

Additionally refactors the ISO-8601 datetime strings using a similar trick that is compatible with v2 and is clearer and easier to use

Lastly, adds a test showing that the model is compatible for use with FastAPI as a data field item (for forms and such)

fixes: #46
fixes: #58
fixes: #50
fixes: #54
fixes: #56

@fubuloubu
Copy link
Contributor Author

A note that python 3.8 and 3.9 not supported on macos-latest right now

@fubuloubu
Copy link
Contributor Author

Sorry @sbihel @ameyarao98, CI should be fixed now

@sbihel
Copy link
Member

sbihel commented Apr 29, 2024

Thank you!

@sbihel sbihel merged commit ace09dc into spruceid:main Apr 29, 2024
8 checks passed
@sbihel
Copy link
Member

sbihel commented Apr 29, 2024

Published as part of v3.0.0

@fubuloubu fubuloubu deleted the refactor/pydantic-v2 branch April 29, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants