-
Notifications
You must be signed in to change notification settings - Fork 338
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
Use the referencing package for resolving schema references #560
Conversation
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.
Idk if reviews from a third party gets a pass but anyway changes looks good to me,
I've run our tests using this branch and nothing failed. But this has no changelog, the contributing guideline states that it should contain one
@peter-doggart could you start the workflows?
Sure thing. Will have a review of this later this evening. :) |
Yesterday everything seemed fine: https://github.com/foarsitter/flask-restx/actions/runs/6237094186/job/16929870907 Today I messed up the branch while on the phone. @hbusul can you see what's the difference? |
I think we might run into problems because currently |
Python 3.7 is indeed EOL since 2023-06-27. |
It is not only referencing but also jsonschema that does not support python 3.7 . With 3.7 it does not even import referencing due to a syntax error. I have nothing against for dropping python 3.7 but I do not know if it should be done with this ticket or it should be announced. What do you think about moving to import statement in try-except and fallback to not supported way but that also gives you time until jsonschema really drops it, maybe to counter that we can fix the version and when we get rid of 3.7 we can unfix the version. |
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 think this is all fine, since I've merged the drop 3.7 PR. However, can you have a look and resolve the remaining conflict (it's on the changelog) and pull in those changes. I can't fix it because this PR is to merge foarsitter:master.
Some tests are failing and I'm unable to find a solution. FAILED tests/test_payload.py::PayloadTest::test_validation_with_inheritance |
I'm a bit busy but I will try to look at why those are failing ASAP within this week |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #560 +/- ##
==========================================
- Coverage 96.45% 96.44% -0.01%
==========================================
Files 20 20
Lines 2733 2728 -5
==========================================
- Hits 2636 2631 -5
Misses 97 97
☔ View full report in Codecov by Sentry. |
Did some investigation on the issue today. Seems that we do not need Instead of keeping a global registry, I added the
|
The last few messages on this PR look strange to me. It seems that this PR was not merged. Could somebody handle this? This issue is bugging me in some of my installations. |
For what I found is that the
jsonschema
validators are compatible with thereferencing
package resolvers.This change is at least covered by
test_api_payload_strict_verification
.Fixes #553