Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ifex/output_filters/schema/ifex_to_json_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,13 @@ def print_type(t, fields):
# Model traversal
# =======================================================================

def collect_type_info(t, collection={}, seen={}):
def collect_type_info(t, collection=None, seen=None):
"""This is the main recursive function that loops through tree and collects
information about its structure which is later used to output the schema:"""
if collection is None:
collection = {}
if seen is None:
seen = {}

# We don't need to gather information about primitive types because they
# will not have any member fields below them.
Expand Down