Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit 6105796

Browse files
ulaUladmromaszewicz
authored
Fixes type collision for enum values that start with _ (underscore) (oapi-codegen#1438)
Co-authored-by: Ula <ulad@users.noreply.github.com> Co-authored-by: Marcin Romaszewicz <mromaszewicz@users.noreply.github.com>
1 parent 54868c7 commit 6105796

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/codegen/utils_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ func TestSchemaNameToTypeName(t *testing.T) {
604604
"=3": "Equal3",
605605
"#Tag": "HashTag",
606606
".com": "DotCom",
607+
"_1": "Underscore1",
607608
">=": "GreaterThanEqual",
608609
"<=": "LessThanEqual",
609610
"<": "LessThan",

0 commit comments

Comments
 (0)