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

Reduce minimumn requirement for jsonschema to version 3.2.0 #373

Closed

Conversation

lresende
Copy link
Member

  • 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

- 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
@welcome
Copy link

welcome bot commented Feb 13, 2023

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@blink1073
Copy link
Contributor

4.0.1 has been available since Sep 2021, I'm failing to see the issue.

@codecov-commenter
Copy link

Codecov Report

Base: 80.86% // Head: 80.86% // No change to project coverage 👍

Coverage data is based on head (8d8db71) compared to base (eb37a21).
Patch has no changes to coverable lines.

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lresende
Copy link
Member Author

4.0.1 has been available since Sep 2021, I'm failing to see the issue.

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 <=4.0.

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.

@blink1073
Copy link
Contributor

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 jsonschema 3.x is getting any critical bugfixes.

@lresende
Copy link
Member Author

lresende commented Feb 13, 2023

We do require it

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.

@lresende
Copy link
Member Author

@blink1073
Copy link
Contributor

It already is a transient dependency, as I said above. I'm not going to merge this PR, and I'm unsubscribing.

@lresende
Copy link
Member Author

Closing this in favor of working with the original cause of this behavior
kubeflow/pipelines#8855

@lresende lresende closed this Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants