xarray-contrib / xarray-schema

Schema validation for Xarray objects
https://xarray-schema.readthedocs.io/en/latest/index.html
MIT License
39 stars 8 forks source link

Json roundtrip #18

Closed jhamman closed 2 years ago

jhamman commented 2 years ago

Adds support for round-tripping schemas to/from JSON.

codecov[bot] commented 2 years ago

Codecov Report

Merging #18 (76dad09) into main (314dd75) will increase coverage by 2.63%. The diff coverage is 95.14%.

@@            Coverage Diff             @@
##             main      #18      +/-   ##
==========================================
+ Coverage   93.73%   96.37%   +2.63%     
==========================================
  Files           6        6              
  Lines         351      441      +90     
==========================================
+ Hits          329      425      +96     
+ Misses         22       16       -6     
Impacted Files Coverage Δ
xarray_schema/dataarray.py 93.85% <93.10%> (+7.01%) :arrow_up:
xarray_schema/dataset.py 96.77% <93.10%> (-3.23%) :arrow_down:
xarray_schema/components.py 98.28% <97.67%> (-0.27%) :arrow_down:
xarray_schema/base.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

jhamman commented 2 years ago

An update here. This is 99% done, just working thought some final type checking issues.