Skip to content
This repository was archived by the owner on Dec 28, 2025. It is now read-only.

Conversation

@handrews
Copy link
Contributor

@handrews handrews commented Mar 18, 2023

[EDIT: I figured out a much less convoluted way to handle #76, so this is no longer strictly necessary. These accessors might be useful as part of the public API, so I'm leaving the PR up, but if they don't fit with the API design it's fine to just close this.]

Finding the document root is needed for resolving references as proposed in order to support mutually referencing schema bundles per issue #76, but it stands on its own and the properties might be useful regardless of how that issue is (or isn't) solved.

The current proposal in #76 requires ensuring that either a schema document is all-resolved or all-not-resolved, to avoid unpredictable reference resolution errors during evaluation. Exactly how and why this is needed will be more clear if/when I post a PR for the whole solution.

@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -1.52 ⚠️

Comparison is base (3ff123b) 92.62% compared to head (22dd3ac) 91.10%.

❗ Current head 22dd3ac differs from pull request most recent head e9d2c43. Consider uploading reports for the commit e9d2c43 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #78      +/-   ##
==========================================
- Coverage   92.62%   91.10%   -1.52%     
==========================================
  Files          23       21       -2     
  Lines        2033     2002      -31     
  Branches      428      428              
==========================================
- Hits         1883     1824      -59     
- Misses         97      118      +21     
- Partials       53       60       +7     
Impacted Files Coverage Δ
jschon/jsonschema.py 89.96% <100.00%> (-0.95%) ⬇️

... and 11 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Finding the document root is needed for resolving references
as proposed in order to support mutually referencing schema
bundles.  The current proposal requires ensuring that
either a schema document is all-resolved or all-not-resolved.
@marksparkza marksparkza merged commit 0c210c2 into marksparkza:main Jul 13, 2023
@handrews handrews deleted the rootschema branch July 19, 2023 21:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants