linkml / linkml-runtime

Runtime support for linkml generated models
https://linkml.io/linkml/
Creative Commons Zero v1.0 Universal
24 stars 23 forks source link

fixes bug where SchemaView could not be constructed directly from remote URL 1317 #253

Closed cmungall closed 1 year ago

cmungall commented 1 year ago

Fixes https://github.com/linkml/linkml/issues/1317

Fix: only set source_file if the schema is loaded from a non-URL, non-YAML string source

codecov-commenter commented 1 year ago

Codecov Report

Merging #253 (d69b771) into main (b992fe0) will increase coverage by 0.36%. The diff coverage is 62.50%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #253      +/-   ##
==========================================
+ Coverage   63.54%   63.91%   +0.36%     
==========================================
  Files          53       53              
  Lines        6117     6235     +118     
  Branches     1650     1691      +41     
==========================================
+ Hits         3887     3985      +98     
+ Misses       1774     1769       -5     
- Partials      456      481      +25     
Impacted Files Coverage Δ
linkml_runtime/index/object_index.py 88.28% <12.50%> (-3.53%) :arrow_down:
linkml_runtime/dumpers/rdflib_dumper.py 94.94% <40.00%> (-2.97%) :arrow_down:
linkml_runtime/utils/context_utils.py 68.33% <50.00%> (-1.85%) :arrow_down:
linkml_runtime/utils/schemaview.py 83.27% <55.31%> (-3.13%) :arrow_down:
linkml_runtime/__init__.py 100.00% <100.00%> (ø)
linkml_runtime/utils/namespaces.py 73.37% <100.00%> (+2.48%) :arrow_up:
linkml_runtime/utils/yamlutils.py 79.44% <100.00%> (+1.29%) :arrow_up:
... and 1 more

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