-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Reduce minimumn requirement for jsonschema to version 3.2.0 #373
Conversation
- Currently various external dependencies caps jsonschema on the next major release, and we jumped from requiring jsonschema 2.6.0 to 4.17.3 on jupyterlab#360 and that is causing a lot of incompatibility in the ecosystem. - This reduces the requirement to 3.2.0 which is also the minimun required by jupyter-events
Thanks for submitting your first pull request! You are awesome! 🤗 |
4.0.1 has been available since Sep 2021, I'm failing to see the issue. |
Codecov ReportBase: 80.86% // Head: 80.86% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #373 +/- ##
=======================================
Coverage 80.86% 80.86%
=======================================
Files 22 22
Lines 1766 1766
Branches 333 333
=======================================
Hits 1428 1428
Misses 235 235
Partials 103 103 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There isn't an issue per see. What I am trying to say is that, if we don't explicitly depend on a specific functionality from 4.x it would be good to be a little more flexible on the cap as we are seeing a lot of issues downstream as dependencies are still stuck on defining A concrete example is that I can't deploy Elyra with the latest JupyterLab as kfp requires jsonschema<=4.0. I see different issues at work as well, etc. |
We do require it, for https://github.com/p1c2u/openapi-spec-validator/blob/e798c5af68bd7d2efc1484a876e26bdb82d245fd/pyproject.toml#L47. I'd understand if it was a more recent release, but it is 18 months old and it is unlikely the |
We define the minimum to be 4.0, but are we leveraging capabilities that are not available in an older version? In other words, would the code stop compiling/working if we deploy with 3.x? Also, this is mostly giving flexibility to users. With this change, I could deploy an application together with JsonSchema version 3.x if a transient dependency requires this... or I could indeed use the latest JsonSchema if I am deploying lab with other dependencies that are more up to-date. This change, In no way, forces a deployment with 3.x, but mostly enables it if the dependency gets resolved to it due to transient dependencies. |
An example of similar flexibility: |
It already is a transient dependency, as I said above. I'm not going to merge this PR, and I'm unsubscribing. |
Closing this in favor of working with the original cause of this behavior |
Currently various external dependencies caps jsonschema on the next major release, and we jumped from requiring jsonschema 2.6.0 to 4.17.3 on Add support for newer openapi spec #360 and that is causing a lot of incompatibility in the ecosystem.
This reduces the requirement to 3.2.0 which is also the minimun required by jupyter-events