Skip to content

Commit 9ef9773

Browse files
committed
correct reference to AvroSchemaFromJSONData
1 parent 798cd06 commit 9ef9773

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool/builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import schema_salad.validate as validate
1212
import schema_salad.schema as schema
1313
from schema_salad.sourceline import SourceLine
14+
from schema_salad.schema import AvroSchemaFromJSONData
1415

1516
from rdflib import Graph, URIRef
1617
from rdflib.namespace import OWL, RDFS
@@ -149,7 +150,7 @@ def bind_input(self, schema, datum, lead_pos=None, tail_pos=None, discover_secon
149150
elif isinstance(t, dict) and "name" in t and self.names.has_name(t["name"], ""):
150151
avsc = self.names.get_name(t["name"], "")
151152
else:
152-
avsc = schema.AvroSchemaFromJSONData(t, self.names)
153+
avsc = AvroSchemaFromJSONData(t, self.names)
153154
if validate.validate(avsc, datum):
154155
schema = copy.deepcopy(schema)
155156
schema["type"] = t

0 commit comments

Comments
 (0)