Skip to content

Conversation

Artifizer
Copy link

The draft auto-detection only recognized http:// URLs for draft-04/06/07,
rejecting the widely used https:// forms. This caused <U+0093>Unknown specification<U+0094>
errors for schemas like:

This change updates detect() to accept both http and https for all known
drafts (including completeness for 2019-09 and 2020-12).

Behavioral impact:

  • CLI and library no longer fail on HTTPS $schema values for draft-04/06/07.

Tests:

  • Add unit cases for HTTPS on drafts 07/06/04 in crates/jsonschema-referencing/src/specification/mod.rs

Refs: #802

The draft auto-detection only recognized http:// URLs for draft-04/06/07,
rejecting the widely used https:// forms. This caused �Unknown specification�
errors for schemas like:
- https://json-schema.org/draft-07/schema
- https://json-schema.org/draft-06/schema
- https://json-schema.org/draft-04/schema

This change updates detect() to accept both http and https for all known
drafts (including completeness for 2019-09 and 2020-12).

Behavioral impact:
- CLI and library no longer fail on HTTPS $schema values for draft-04/06/07.

Tests:
- Add unit cases for HTTPS on drafts 07/06/04 in crates/jsonschema-referencing/src/specification/mod.rs

Refs: Stranger6667#802
Copy link

codecov bot commented Sep 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.39%. Comparing base (ed96fc5) to head (2bf9d74).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #803   +/-   ##
=======================================
  Coverage   85.38%   85.39%           
=======================================
  Files          95       95           
  Lines       14605    14611    +6     
=======================================
+ Hits        12471    12477    +6     
  Misses       2134     2134           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

codspeed-hq bot commented Sep 25, 2025

CodSpeed Performance Report

Merging #803 will not alter performance

Comparing Artifizer:master (2bf9d74) with master (ed96fc5)

Summary

✅ 47 untouched

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.

1 participant