Skip to content

Commit e7fb8e1

Browse files
authored
stringifying list elements before pasting (#124)
1 parent ef00df7 commit e7fb8e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schemasheets/schema_exporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,12 @@ def repl(v: Any) -> Optional[str]:
280280
# representation
281281
if isinstance(v, list):
282282
v = [repl(v1) for v1 in v if repl(v1) is not None]
283-
v = '|'.join(v)
283+
v = '|'.join([str(i) for i in v])
284284
if v != '':
285285
exported_row[col_name] = v
286286
elif isinstance(v, dict):
287287
v = [repl(v1) for v1 in v.values() if repl(v1) is not None]
288-
v = '|'.join(v)
288+
v = '|'.join([str(i) for i in v])
289289
if v != '':
290290
exported_row[col_name] = v
291291
else:

0 commit comments

Comments
 (0)