-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: support Pydantic V2 #281
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #281 +/- ##
==========================================
- Coverage 78.56% 78.30% -0.26%
==========================================
Files 78 78
Lines 5482 5435 -47
==========================================
- Hits 4307 4256 -51
- Misses 1175 1179 +4 ☔ View full report in Codecov by Sentry. |
This comment was marked as resolved.
This comment was marked as resolved.
4d90faf
to
43e622b
Compare
43e622b
to
8d74c0e
Compare
8e37840
to
52fb903
Compare
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.
Creating new loan items does not work with Titan:
- on creation Hyperion send a 201 but Titan raise an error
- on getting items Titan raise an error "get a string instead of float"
52fb903
to
6f0414a
Compare
instead of a timedelta which is converted in an ISO 8601 str
f7c4080
to
6e7bac9
Compare
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 couldn't test the PR, but the code looks good to me
### Description This PR moves all module-related files to `/app/modules`, and each module has its own directory. It also makes modules declare their own module object. Note: it is based on pydantic v2 (#281).
Description
This PR adds the necessary modifications in order to support Pydantic breaking changes !
HOWEVER, do not use in production already, please test it thoroughly to verify that everything is working.