Skip to content

Commit f7298b3

Browse files
committed
Commit via running ake Sources/meta
1 parent 6e95cd2 commit f7298b3

File tree

2 files changed

+384
-367
lines changed

2 files changed

+384
-367
lines changed

Sources/meta/Client.swift

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public struct Client: APIProtocol {
4444
///
4545
/// - Remark: HTTP `GET /`.
4646
/// - Remark: Generated from `#/paths///get(meta/root)`.
47-
public func meta_sol_root(_ input: Operations.meta_sol_root.Input) async throws -> Operations.meta_sol_root.Output {
47+
public func metaRoot(_ input: Operations.MetaRoot.Input) async throws -> Operations.MetaRoot.Output {
4848
try await client.send(
4949
input: input,
50-
forOperation: Operations.meta_sol_root.id,
50+
forOperation: Operations.MetaRoot.id,
5151
serializer: { input in
5252
let path = try converter.renderedPath(
5353
template: "/",
@@ -68,7 +68,7 @@ public struct Client: APIProtocol {
6868
switch response.status.code {
6969
case 200:
7070
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
71-
let body: Operations.meta_sol_root.Output.Ok.Body
71+
let body: Operations.MetaRoot.Output.Ok.Body
7272
let chosenContentType = try converter.bestContentType(
7373
received: contentType,
7474
options: [
@@ -78,7 +78,7 @@ public struct Client: APIProtocol {
7878
switch chosenContentType {
7979
case "application/json":
8080
body = try await converter.getResponseBodyAsJSON(
81-
Components.Schemas.root.self,
81+
Components.Schemas.Root.self,
8282
from: responseBody,
8383
transforming: { value in
8484
.json(value)
@@ -113,10 +113,10 @@ public struct Client: APIProtocol {
113113
///
114114
/// - Remark: HTTP `GET /meta`.
115115
/// - Remark: Generated from `#/paths//meta/get(meta/get)`.
116-
public func meta_sol_get(_ input: Operations.meta_sol_get.Input) async throws -> Operations.meta_sol_get.Output {
116+
public func metaGet(_ input: Operations.MetaGet.Input) async throws -> Operations.MetaGet.Output {
117117
try await client.send(
118118
input: input,
119-
forOperation: Operations.meta_sol_get.id,
119+
forOperation: Operations.MetaGet.id,
120120
serializer: { input in
121121
let path = try converter.renderedPath(
122122
template: "/meta",
@@ -137,7 +137,7 @@ public struct Client: APIProtocol {
137137
switch response.status.code {
138138
case 200:
139139
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
140-
let body: Operations.meta_sol_get.Output.Ok.Body
140+
let body: Operations.MetaGet.Output.Ok.Body
141141
let chosenContentType = try converter.bestContentType(
142142
received: contentType,
143143
options: [
@@ -147,7 +147,7 @@ public struct Client: APIProtocol {
147147
switch chosenContentType {
148148
case "application/json":
149149
body = try await converter.getResponseBodyAsJSON(
150-
Components.Schemas.api_hyphen_overview.self,
150+
Components.Schemas.ApiOverview.self,
151151
from: responseBody,
152152
transforming: { value in
153153
.json(value)
@@ -177,10 +177,10 @@ public struct Client: APIProtocol {
177177
///
178178
/// - Remark: HTTP `GET /octocat`.
179179
/// - Remark: Generated from `#/paths//octocat/get(meta/get-octocat)`.
180-
public func meta_sol_get_hyphen_octocat(_ input: Operations.meta_sol_get_hyphen_octocat.Input) async throws -> Operations.meta_sol_get_hyphen_octocat.Output {
180+
public func metaGetOctocat(_ input: Operations.MetaGetOctocat.Input) async throws -> Operations.MetaGetOctocat.Output {
181181
try await client.send(
182182
input: input,
183-
forOperation: Operations.meta_sol_get_hyphen_octocat.id,
183+
forOperation: Operations.MetaGetOctocat.id,
184184
serializer: { input in
185185
let path = try converter.renderedPath(
186186
template: "/octocat",
@@ -208,7 +208,7 @@ public struct Client: APIProtocol {
208208
switch response.status.code {
209209
case 200:
210210
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
211-
let body: Operations.meta_sol_get_hyphen_octocat.Output.Ok.Body
211+
let body: Operations.MetaGetOctocat.Output.Ok.Body
212212
let chosenContentType = try converter.bestContentType(
213213
received: contentType,
214214
options: [
@@ -221,7 +221,7 @@ public struct Client: APIProtocol {
221221
OpenAPIRuntime.HTTPBody.self,
222222
from: responseBody,
223223
transforming: { value in
224-
.application_octocat_hyphen_stream(value)
224+
.applicationOctocatStream(value)
225225
}
226226
)
227227
default:
@@ -246,10 +246,10 @@ public struct Client: APIProtocol {
246246
///
247247
/// - Remark: HTTP `GET /versions`.
248248
/// - Remark: Generated from `#/paths//versions/get(meta/get-all-versions)`.
249-
public func meta_sol_get_hyphen_all_hyphen_versions(_ input: Operations.meta_sol_get_hyphen_all_hyphen_versions.Input) async throws -> Operations.meta_sol_get_hyphen_all_hyphen_versions.Output {
249+
public func metaGetAllVersions(_ input: Operations.MetaGetAllVersions.Input) async throws -> Operations.MetaGetAllVersions.Output {
250250
try await client.send(
251251
input: input,
252-
forOperation: Operations.meta_sol_get_hyphen_all_hyphen_versions.id,
252+
forOperation: Operations.MetaGetAllVersions.id,
253253
serializer: { input in
254254
let path = try converter.renderedPath(
255255
template: "/versions",
@@ -270,7 +270,7 @@ public struct Client: APIProtocol {
270270
switch response.status.code {
271271
case 200:
272272
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
273-
let body: Operations.meta_sol_get_hyphen_all_hyphen_versions.Output.Ok.Body
273+
let body: Operations.MetaGetAllVersions.Output.Ok.Body
274274
let chosenContentType = try converter.bestContentType(
275275
received: contentType,
276276
options: [
@@ -292,7 +292,7 @@ public struct Client: APIProtocol {
292292
return .ok(.init(body: body))
293293
case 404:
294294
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
295-
let body: Components.Responses.not_found.Body
295+
let body: Components.Responses.NotFound.Body
296296
let chosenContentType = try converter.bestContentType(
297297
received: contentType,
298298
options: [
@@ -302,7 +302,7 @@ public struct Client: APIProtocol {
302302
switch chosenContentType {
303303
case "application/json":
304304
body = try await converter.getResponseBodyAsJSON(
305-
Components.Schemas.basic_hyphen_error.self,
305+
Components.Schemas.BasicError.self,
306306
from: responseBody,
307307
transforming: { value in
308308
.json(value)
@@ -330,10 +330,10 @@ public struct Client: APIProtocol {
330330
///
331331
/// - Remark: HTTP `GET /zen`.
332332
/// - Remark: Generated from `#/paths//zen/get(meta/get-zen)`.
333-
public func meta_sol_get_hyphen_zen(_ input: Operations.meta_sol_get_hyphen_zen.Input) async throws -> Operations.meta_sol_get_hyphen_zen.Output {
333+
public func metaGetZen(_ input: Operations.MetaGetZen.Input) async throws -> Operations.MetaGetZen.Output {
334334
try await client.send(
335335
input: input,
336-
forOperation: Operations.meta_sol_get_hyphen_zen.id,
336+
forOperation: Operations.MetaGetZen.id,
337337
serializer: { input in
338338
let path = try converter.renderedPath(
339339
template: "/zen",
@@ -354,7 +354,7 @@ public struct Client: APIProtocol {
354354
switch response.status.code {
355355
case 200:
356356
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
357-
let body: Operations.meta_sol_get_hyphen_zen.Output.Ok.Body
357+
let body: Operations.MetaGetZen.Output.Ok.Body
358358
let chosenContentType = try converter.bestContentType(
359359
received: contentType,
360360
options: [

0 commit comments

Comments
 (0)