[med-svn] [Git][med-team/python-schema-salad][upstream] New upstream version 5.0.20200302192450
Michael R. Crusoe
gitlab at salsa.debian.org
Fri Apr 10 16:31:57 BST 2020
Michael R. Crusoe pushed to branch upstream at Debian Med / python-schema-salad
Commits:
8df1209c by Michael R. Crusoe at 2020-04-10T17:10:08+02:00
New upstream version 5.0.20200302192450
- - - - -
5 changed files:
- PKG-INFO
- schema_salad.egg-info/PKG-INFO
- schema_salad/ref_resolver.py
- schema_salad/tests/test_examples.py
- setup.cfg
Changes:
=====================================
PKG-INFO
=====================================
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: schema-salad
-Version: 5.0.20200220195218
+Version: 5.0.20200302192450
Summary: Schema Annotations for Linked Avro Data (SALAD)
Home-page: https://github.com/common-workflow-language/schema_salad
Author: Common workflow language working group
=====================================
schema_salad.egg-info/PKG-INFO
=====================================
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: schema-salad
-Version: 5.0.20200220195218
+Version: 5.0.20200302192450
Summary: Schema Annotations for Linked Avro Data (SALAD)
Home-page: https://github.com/common-workflow-language/schema_salad
Author: Common workflow language working group
=====================================
schema_salad/ref_resolver.py
=====================================
@@ -1305,6 +1305,8 @@ class Loader(object):
raise ValidationException("", None, errors)
elif isinstance(link, CommentedMap):
self.validate_links(link, docid, all_doc_ids)
+ elif link is None:
+ return link
else:
raise ValidationException(
"`{}` field is {}, expected string, list, or a dict.".format(
=====================================
schema_salad/tests/test_examples.py
=====================================
@@ -427,3 +427,12 @@ def test_can_use_Any():
) = schema_salad.schema.load_schema( # noqa: B950
get_data("tests/test_schema/cwltest-schema.yml")
)
+
+
+def test_nullable_links():
+ ldr = schema_salad.ref_resolver.Loader({})
+ ctx = {"link": {"@type": "@id"}}
+ ldr.add_context(ctx)
+
+ ra, _ = ldr.resolve_all(cmap({"link": None}), "http://example.com", checklinks=True)
+ assert {"link": None} == ra
=====================================
setup.cfg
=====================================
@@ -5,6 +5,6 @@ test = pytest
addopts = --pyargs schema_salad
[egg_info]
-tag_build = .20200220195218
+tag_build = .20200302192450
tag_date = 0
View it on GitLab: https://salsa.debian.org/med-team/python-schema-salad/-/commit/8df1209c120a6bcd928c6756dd441b611edad23c
--
View it on GitLab: https://salsa.debian.org/med-team/python-schema-salad/-/commit/8df1209c120a6bcd928c6756dd441b611edad23c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200410/4acceaa6/attachment-0001.html>
More information about the debian-med-commit
mailing list