From 945e62ea21d56a705db4986a0ccdaeb38a9acb65 Mon Sep 17 00:00:00 2001 From: Kori Kuzma Date: Wed, 26 Feb 2025 09:03:38 -0500 Subject: [PATCH] fix: remove length check in `build_inheritance_dicts` close #38 --- src/ga4gh/gks/metaschema/tools/source_proc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ga4gh/gks/metaschema/tools/source_proc.py b/src/ga4gh/gks/metaschema/tools/source_proc.py index 4428bb5..72e1328 100755 --- a/src/ga4gh/gks/metaschema/tools/source_proc.py +++ b/src/ga4gh/gks/metaschema/tools/source_proc.py @@ -81,7 +81,7 @@ def build_inheritance_dicts(self): for record in records: if not isinstance(record, dict): continue - assert len(record) == 1 + if "$ref" in record: mapped = record["$ref"] elif "$refCurie" in record: