← Back to issue list

Update jsonschema

View original Github issue

Metadata

Project
snapcraft
Number
#5230
Type
issue
State
open
Author
lengau
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed
—

Current evaluation

Triaged enhancement remains open: jsonschema is still pinned to 2.6.0, and the remaining store channel-map validation must be modernized or replaced with Pydantic.

Suggested action: keep open

Reason: The current pyproject.toml still pins jsonschema==2.6.0, and snapcraft/store/channel_map.py retains the runtime validation, so the triaged enhancement is unresolved. Maintainer @mr-cal said there was no known critical reason for the pin; update PR #5506 closed unmerged, while #5655 remains open to replace the remaining store validation with Pydantic.

Evaluated by: mr-cal-bot

Impact: 50 Quick Win: 14 Complexity: 58 Confidence: 92 Actionability: 66

Issue body

### What needs to get done Update jsonschema and fix related breakages ### Why it needs to get done We currently depend on an ancient version of jsonschema that wasn't even the latest version back in 2021: https://github.com/canonical/snapcraft/pull/3519

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 50
Quick Win: 14
Complexity: 58
Confidence: 92
Actionability: 66
keep open Triaged enhancement remains open: jsonschema is still pinned to 2.6.0, and the remaining store channel-map validation must be modernized or replaced with Pydantic.
stealth/space-bunny-alpha
Impact: 40
Quick Win: 12
Complexity: 55
Confidence: 85
Actionability: 65
keep open Enhancement to drop the ancient jsonschema pin (still jsonschema==2.6.0 in pyproject.toml). Renovate bumped it to 2.6.0 in #5690; the remaining usage in snapcraft/store/channel_map.py is now being replaced via a pydantic migration tracked in #5655. Triaged, still open.
qwen/qwen3.6-35b-a3b
Impact: 45
Quick Win: 16
Complexity: 45
Confidence: 75
Actionability: 65
keep open Update jsonschema dependency from pinned 2.6.0 to a newer version and fix related breakages. Issue is triaged but still open with no implementation.
qwen/qwen3.8-27b
Impact: 35
Quick Win: 16
Staleness: 70
Complexity: 55
Confidence: 80
Support Request: 0
keep open Enhancement to update the ancient pinned jsonschema==2.6.0 dependency and fix breakages. Triaged by maintainers; the pin is still in pyproject.toml at HEAD, and the work is being pursued via follow-up issues replacing jsonschema with pydantic.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 45
Confidence: 85
Support Request: 10
keep open Enhancement to update the outdated jsonschema dependency and fix related breakages. Currently triaged and awaiting implementation, with maintainer discussion confirming the version pin is no longer necessary.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 50
Confidence: 90
Support Request: 5
keep open Triaged enhancement to update the pinned jsonschema dependency to a modern version and fix related breakages. Currently inactive for over a year.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/snapcraft#5506 (confidence 99%)

    A jsonschema 2.5.1-to-2.6.0 update attempt that was closed unmerged in favor of the Pydantic migrations.

  • Related To: canonical/snapcraft#5655 (confidence 98%)

    Open migration to replace the remaining legacy store channel-map jsonschema validation with Pydantic.

Related issues

Issue Project State Summary Similarity
#5655 Use pydantic instead of jsonschema for legacy store snapcraft open Triaged enhancement to replace legacy store channel-map jsonschema validation with Pydantic; it remains open, and jsonschema 2.6.0 is still pinned.
85%