Closed fubuloubu closed 3 months ago
Refactors to use pydantic v2 API and updates most of the other pins to be more recent versions (removed dateutil)
dateutil
Resolves issues with AnyURL by leveraging a trick that creates a field which uses it for validation, but retains it as a string
AnyURL
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: https://github.com/spruceid/siwe-py/issues/46 fixes: https://github.com/spruceid/siwe-py/issues/58 fixes: https://github.com/spruceid/siwe-py/issues/50 fixes: https://github.com/spruceid/siwe-py/issues/54 fixes: https://github.com/spruceid/siwe-py/issues/56
A note that python 3.8 and 3.9 not supported on macos-latest right now
Sorry @sbihel @ameyarao98, CI should be fixed now
Thank you!
Published as part of v3.0.0
v3.0.0
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 stringAdditionally 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: https://github.com/spruceid/siwe-py/issues/46 fixes: https://github.com/spruceid/siwe-py/issues/58 fixes: https://github.com/spruceid/siwe-py/issues/50 fixes: https://github.com/spruceid/siwe-py/issues/54 fixes: https://github.com/spruceid/siwe-py/issues/56