Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 7, 2024
1 parent dc07688 commit 1594931
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jsonschema_gentypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,12 @@ def get_name(
output += postfix
if not get_name.__dict__.get("names"):
get_name.__dict__["names"] = set()
# get_name.__dict__["names"] = dict()
# elif output in get_name.__dict__["names"] and get_name.__dict__["names"][output] != schema:
elif output in get_name.__dict__["names"]:
output += str(random.randint(0, 9999))
get_name.__dict__["names"][output] = schema
# get_name.__dict__["names"][output] = schema
get_name.__dict__["names"].add(output)
return output


Expand Down

0 comments on commit 1594931

Please sign in to comment.