Skip to content

Commit

Permalink
Merge pull request #417 from azdolinski/patch-1
Browse files Browse the repository at this point in the history
fix inconsistance routers<>tags arrays
  • Loading branch information
koxudaxi authored Jul 2, 2024
2 parents 89f0ce4 + cc62b44 commit 002ab32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi_code_generator/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def generate_code(
for tag in operation.tags:
all_tags.append(tag)
# Convert from Tag Names to router_names
sorted_tags = sorted(set(all_tags))
sorted_tags = sorted(set(all_tags), key=lambda x: x.lower())
routers = sorted(
[re.sub(TITLE_PATTERN, '_', tag.strip()).lower() for tag in sorted_tags]
)
Expand Down

0 comments on commit 002ab32

Please sign in to comment.