Skip to content

Commit

Permalink
Add TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Oct 4, 2023
1 parent d945962 commit 9a376ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions singer_sdk/helpers/_flattening.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ def _flatten_schema( # noqa: C901, PLR0912
items.append((new_key, {"type": types}))
else:
items.append((new_key, field_schema))
# TODO: Figure out what this really does, try breaking it.
# If it's not needed, remove it.
elif len(field_schema.values()) > 0:
if next(iter(field_schema.values()))[0]["type"] == "string":
next(iter(field_schema.values()))[0]["type"] = ["null", "string"]
Expand Down

0 comments on commit 9a376ae

Please sign in to comment.