Skip to content

Commit 8c5bda0

Browse files
author
Peter Amstutz
committed
Fix mapSubject fields when $import or $include is provided.
1 parent f43fa45 commit 8c5bda0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

schema_salad/ref_resolver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ def resolve_all(self, document, base_url, file_base=None):
365365

366366
if isinstance(document, dict):
367367
for idmapField in loader.idmap:
368-
if idmapField in document and isinstance(document[idmapField], dict):
368+
if (idmapField in document and isinstance(document[idmapField], dict) and
369+
"$import" not in document[idmapField] and
370+
"$include" not in document[idmapField]):
369371
ls = []
370372
for k, v in document[idmapField].items():
371373
if not isinstance(v, dict):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
extras_require = {} # TODO: to be removed when the above is added
4242

4343
setup(name='schema-salad',
44-
version='1.10',
44+
version='1.11',
4545
description='Schema Annotations for Linked Avro Data (SALAD)',
4646
long_description=open(README).read(),
4747
author='Common workflow language working group',

0 commit comments

Comments
 (0)