Skip to content

Commit 5f4876a

Browse files
committed
for an easy win, expose swift naming logic for downstream use.
1 parent 5eaed20 commit 5f4876a

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)