Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 15f8f4f

Browse files
authored
Merge pull request #114 from ryansobol/idiomatic-naming-strategy
Switch to Idiomatic Swift Naming Convention
2 parents 0f61eb4 + 0f65313 commit 15f8f4f

File tree

86 files changed

+90066
-85565
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+90066
-85565
lines changed

‎Mintfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
yonaskolb/Mint@0.17.5
2-
apple/swift-openapi-generator@1.2.1
2+
apple/swift-openapi-generator@1.7.2

‎README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import GitHubRestAPIUsers
1414
import OpenAPIRuntime
1515
import OpenAPIURLSession
1616

17-
let client = Client(serverURL: try Servers.server1(), transport: URLSessionTransport())
18-
let users = try await client.users_sol_list().ok.body.json
17+
let client = Client(serverURL: try Servers.Server1.url(), transport: URLSessionTransport())
18+
let users = try await client.usersList().ok.body.json
1919
```
2020

2121
<details>
@@ -91,23 +91,23 @@ struct GitHubRestAPIIssuesExtension {
9191
let newBody = "\(body)\n\n\(hidingContent)"
9292

9393
let client = Client(
94-
serverURL: try Servers.server1(),
94+
serverURL: try Servers.Server1.url(),
9595
transport: URLSessionTransport(),
9696
middlewares: [AuthenticationMiddleware(token: nil)]
9797
)
9898

99-
let comments = try await client.issues_sol_list_hyphen_comments(
100-
path: .init(owner: owner, repo: repo, issue_number: number)
99+
let comments = try await client.issuesListComments(
100+
path: .init(owner: owner, repo: repo, issueNumber: number)
101101
).ok.body.json
102102

103103
if let comment = comments.first(where: { 0ドル.body?.contains(hidingContent) == true }) {
104-
_ = try await client.issues_sol_update_hyphen_comment(
105-
path: .init(owner: owner, repo: repo, comment_id: Components.Parameters.comment_hyphen_id(comment.id)),
104+
_ = try await client.issuesUpdateComment(
105+
path: .init(owner: owner, repo: repo, commentId: comment.id),
106106
body: .json(.init(body: newBody))
107107
)
108108
} else {
109-
_ = try await client.issues_sol_create_hyphen_comment(
110-
path: .init(owner: owner, repo: repo, issue_number: number),
109+
_ = try await client.issuesCreateComment(
110+
path: .init(owner: owner, repo: repo, issueNumber: number),
111111
body: .json(.init(body: newBody))
112112
)
113113
}
@@ -130,7 +130,7 @@ import HTTPTypes
130130
let token: String = "***"
131131

132132
let client = Client(
133-
serverURL: try Servers.server1(),
133+
serverURL: try Servers.Server1.url(),
134134
transport: URLSessionTransport(),
135135
middlewares: [AuthenticationMiddleware(token: token)]
136136
)

‎Scripts/GeneratorConfigBuilder.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ struct GeneratorConfigBuilder {
3030
- \#(tagString)
3131

3232
accessModifier: public
33+
34+
namingStrategy: idiomatic
35+
36+
nameOverrides:
37+
'reactions-+1': reactionsThumbsUp
38+
'reactions--1': reactionsThumbsDown
3339
"""#
3440
}
3541

@@ -59,4 +65,3 @@ if let argTag = CommandLine.arguments[1]
5965
} else {
6066
throw ErrorMessage(message: "No tag not found.")
6167
}
62-

‎Sources/actions/Client.swift

Lines changed: 763 additions & 763 deletions
Large diffs are not rendered by default.

‎Sources/actions/Types.swift

Lines changed: 7508 additions & 7083 deletions
Large diffs are not rendered by default.

‎Sources/activity/Client.swift

Lines changed: 223 additions & 223 deletions
Large diffs are not rendered by default.

‎Sources/activity/Types.swift

Lines changed: 3020 additions & 2819 deletions
Large diffs are not rendered by default.

‎Sources/apps/Client.swift

Lines changed: 297 additions & 297 deletions
Large diffs are not rendered by default.

‎Sources/apps/Types.swift

Lines changed: 2902 additions & 2749 deletions
Large diffs are not rendered by default.

‎Sources/billing/Client.swift

Lines changed: 38 additions & 38 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /