Skip to content

Commit 002ab32

Browse files
authored
Merge pull request #417 from azdolinski/patch-1
fix inconsistance routers<>tags arrays
2 parents 89f0ce4 + cc62b44 commit 002ab32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastapi_code_generator/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def generate_code(
188188
for tag in operation.tags:
189189
all_tags.append(tag)
190190
# Convert from Tag Names to router_names
191-
sorted_tags = sorted(set(all_tags))
191+
sorted_tags = sorted(set(all_tags), key=lambda x: x.lower())
192192
routers = sorted(
193193
[re.sub(TITLE_PATTERN, '_', tag.strip()).lower() for tag in sorted_tags]
194194
)

0 commit comments

Comments
 (0)