Skip to content

Commit 6d64332

Browse files
authored
Add await and Protocol to the identifiers escaping rules (#88)
### Motivation Resolves #34 ### Modifications - Added `Protocol` to the keywords set. - Added `await` to the keywords set. ### Result - Would be able to support `Protocol` and `await` as property names. ### Test Plan Tested and verified for both names. They are properly renamed to `_Protocol` and `_await`
1 parent a7b8348 commit 6d64332

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/_OpenAPIGeneratorCore/Extensions/String.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,5 +217,7 @@ fileprivate extension String {
217217
"Array",
218218
"Type",
219219
"type",
220+
"Protocol",
221+
"await",
220222
]
221223
}

0 commit comments

Comments
 (0)