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

Add JSON.document_root; test JSON and JSONSchema #109

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

handrews
Copy link
Contributor

Implements part of #108 (reply in thread) This adds a generic document_root cached property to the JSON class, which can be distinct from both the document_schemaroot and resource_schemaroot of the JSONSchema class.

This lays groundwork to support mixed content such as OpenAPI.

@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01% 🎉

Comparison is base (e6f71d0) 92.73% compared to head (93b9ddb) 92.74%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
+ Coverage   92.73%   92.74%   +0.01%     
==========================================
  Files          23       23              
  Lines        2052     2055       +3     
  Branches      435      436       +1     
==========================================
+ Hits         1903     1906       +3     
  Misses         97       97              
  Partials       52       52              
Files Changed Coverage Δ
jschon/json.py 94.28% <100.00%> (+0.08%) ⬆️

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

This adds a generic document_root cached property to the JSON
class, which can be distinct from both the document_schemaroot
and resource_schemaroot of the JSONSchema class.

This lays groundwork to support mixed content such as OpenAPI.
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