Skip to content

Commit fc87ed7

Browse files
authored
Merge pull request #24 from mattpolzin/fix-reserved-words-in-paths3
for an easy win, expose swift naming logic for downstream use.
2 parents 6234ca3 + 5f4876a commit fc87ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JSONAPISwiftGen/Swift Generators/Test Generators/TestFunctionName.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public struct TestFunctionName: Equatable, RawRepresentable {
140140
}
141141

142142
/// For swift names, we remove braces, escape reserved words, and convert spaces to underscores.
143-
internal static func swiftName(from string: String) -> String {
143+
public static func swiftName(from string: String) -> String {
144144
let name = string
145145
.replacingOccurrences(of: "{", with: "")
146146
.replacingOccurrences(of: "}", with: "")

0 commit comments

Comments
 (0)