Skip to content

Commit 54c5482

Browse files
committed
Commit via running ake Sources/rate-limit
1 parent bac994b commit 54c5482

File tree

2 files changed

+133
-116
lines changed

2 files changed

+133
-116
lines changed

Sources/rate-limit/Client.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public struct Client: APIProtocol {
5959
///
6060
/// - Remark: HTTP `GET /rate_limit`.
6161
/// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)`.
62-
public func rate_hyphen_limit_sol_get(_ input: Operations.rate_hyphen_limit_sol_get.Input) async throws -> Operations.rate_hyphen_limit_sol_get.Output {
62+
public func rateLimitGet(_ input: Operations.RateLimitGet.Input) async throws -> Operations.RateLimitGet.Output {
6363
try await client.send(
6464
input: input,
65-
forOperation: Operations.rate_hyphen_limit_sol_get.id,
65+
forOperation: Operations.RateLimitGet.id,
6666
serializer: { input in
6767
let path = try converter.renderedPath(
6868
template: "/rate_limit",
@@ -82,25 +82,25 @@ public struct Client: APIProtocol {
8282
deserializer: { response, responseBody in
8383
switch response.status.code {
8484
case 200:
85-
let headers: Operations.rate_hyphen_limit_sol_get.Output.Ok.Headers = .init(
86-
X_hyphen_RateLimit_hyphen_Limit: try converter.getOptionalHeaderFieldAsURI(
85+
let headers: Operations.RateLimitGet.Output.Ok.Headers = .init(
86+
xRateLimitLimit: try converter.getOptionalHeaderFieldAsURI(
8787
in: response.headerFields,
8888
name: "X-RateLimit-Limit",
89-
as: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_limit.self
89+
as: Components.Headers.XRateLimitLimit.self
9090
),
91-
X_hyphen_RateLimit_hyphen_Remaining: try converter.getOptionalHeaderFieldAsURI(
91+
xRateLimitRemaining: try converter.getOptionalHeaderFieldAsURI(
9292
in: response.headerFields,
9393
name: "X-RateLimit-Remaining",
94-
as: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_remaining.self
94+
as: Components.Headers.XRateLimitRemaining.self
9595
),
96-
X_hyphen_RateLimit_hyphen_Reset: try converter.getOptionalHeaderFieldAsURI(
96+
xRateLimitReset: try converter.getOptionalHeaderFieldAsURI(
9797
in: response.headerFields,
9898
name: "X-RateLimit-Reset",
99-
as: Components.Headers.x_hyphen_rate_hyphen_limit_hyphen_reset.self
99+
as: Components.Headers.XRateLimitReset.self
100100
)
101101
)
102102
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
103-
let body: Operations.rate_hyphen_limit_sol_get.Output.Ok.Body
103+
let body: Operations.RateLimitGet.Output.Ok.Body
104104
let chosenContentType = try converter.bestContentType(
105105
received: contentType,
106106
options: [
@@ -110,7 +110,7 @@ public struct Client: APIProtocol {
110110
switch chosenContentType {
111111
case "application/json":
112112
body = try await converter.getResponseBodyAsJSON(
113-
Components.Schemas.rate_hyphen_limit_hyphen_overview.self,
113+
Components.Schemas.RateLimitOverview.self,
114114
from: responseBody,
115115
transforming: { value in
116116
.json(value)
@@ -127,7 +127,7 @@ public struct Client: APIProtocol {
127127
return .notModified(.init())
128128
case 404:
129129
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
130-
let body: Components.Responses.not_found.Body
130+
let body: Components.Responses.NotFound.Body
131131
let chosenContentType = try converter.bestContentType(
132132
received: contentType,
133133
options: [
@@ -137,7 +137,7 @@ public struct Client: APIProtocol {
137137
switch chosenContentType {
138138
case "application/json":
139139
body = try await converter.getResponseBodyAsJSON(
140-
Components.Schemas.basic_hyphen_error.self,
140+
Components.Schemas.BasicError.self,
141141
from: responseBody,
142142
transforming: { value in
143143
.json(value)

0 commit comments

Comments
 (0)