Skip to content

Commit 52bfab2

Browse files
committed
Commit via running ake Sources/markdown
1 parent 3f0d516 commit 52bfab2

File tree

2 files changed

+109
-84
lines changed

2 files changed

+109
-84
lines changed

Sources/markdown/Client.swift

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public struct Client: APIProtocol {
4444
///
4545
/// - Remark: HTTP `POST /markdown`.
4646
/// - Remark: Generated from `#/paths//markdown/post(markdown/render)`.
47-
public func markdown_sol_render(_ input: Operations.markdown_sol_render.Input) async throws -> Operations.markdown_sol_render.Output {
47+
public func markdownRender(_ input: Operations.MarkdownRender.Input) async throws -> Operations.MarkdownRender.Output {
4848
try await client.send(
4949
input: input,
50-
forOperation: Operations.markdown_sol_render.id,
50+
forOperation: Operations.MarkdownRender.id,
5151
serializer: { input in
5252
let path = try converter.renderedPath(
5353
template: "/markdown",
@@ -76,25 +76,25 @@ public struct Client: APIProtocol {
7676
deserializer: { response, responseBody in
7777
switch response.status.code {
7878
case 200:
79-
let headers: Operations.markdown_sol_render.Output.Ok.Headers = .init(
80-
Content_hyphen_Type: try converter.getOptionalHeaderFieldAsURI(
79+
let headers: Operations.MarkdownRender.Output.Ok.Headers = .init(
80+
contentType: try converter.getOptionalHeaderFieldAsURI(
8181
in: response.headerFields,
8282
name: "Content-Type",
83-
as: Components.Headers.content_hyphen_type.self
83+
as: Components.Headers.ContentType.self
8484
),
85-
Content_hyphen_Length: try converter.getOptionalHeaderFieldAsURI(
85+
contentLength: try converter.getOptionalHeaderFieldAsURI(
8686
in: response.headerFields,
8787
name: "Content-Length",
8888
as: Swift.String.self
8989
),
90-
X_hyphen_CommonMarker_hyphen_Version: try converter.getOptionalHeaderFieldAsURI(
90+
xCommonMarkerVersion: try converter.getOptionalHeaderFieldAsURI(
9191
in: response.headerFields,
9292
name: "X-CommonMarker-Version",
93-
as: Components.Headers.x_hyphen_common_hyphen_marker_hyphen_version.self
93+
as: Components.Headers.XCommonMarkerVersion.self
9494
)
9595
)
9696
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
97-
let body: Operations.markdown_sol_render.Output.Ok.Body
97+
let body: Operations.MarkdownRender.Output.Ok.Body
9898
let chosenContentType = try converter.bestContentType(
9999
received: contentType,
100100
options: [
@@ -137,10 +137,10 @@ public struct Client: APIProtocol {
137137
///
138138
/// - Remark: HTTP `POST /markdown/raw`.
139139
/// - Remark: Generated from `#/paths//markdown/raw/post(markdown/render-raw)`.
140-
public func markdown_sol_render_hyphen_raw(_ input: Operations.markdown_sol_render_hyphen_raw.Input) async throws -> Operations.markdown_sol_render_hyphen_raw.Output {
140+
public func markdownRenderRaw(_ input: Operations.MarkdownRenderRaw.Input) async throws -> Operations.MarkdownRenderRaw.Output {
141141
try await client.send(
142142
input: input,
143-
forOperation: Operations.markdown_sol_render_hyphen_raw.id,
143+
forOperation: Operations.MarkdownRenderRaw.id,
144144
serializer: { input in
145145
let path = try converter.renderedPath(
146146
template: "/markdown/raw",
@@ -165,7 +165,7 @@ public struct Client: APIProtocol {
165165
headerFields: &request.headerFields,
166166
contentType: "text/plain"
167167
)
168-
case let .text_x_hyphen_markdown(value):
168+
case let .textXMarkdown(value):
169169
body = try converter.setOptionalRequestBodyAsBinary(
170170
value,
171171
headerFields: &request.headerFields,
@@ -177,13 +177,13 @@ public struct Client: APIProtocol {
177177
deserializer: { response, responseBody in
178178
switch response.status.code {
179179
case 200:
180-
let headers: Operations.markdown_sol_render_hyphen_raw.Output.Ok.Headers = .init(X_hyphen_CommonMarker_hyphen_Version: try converter.getOptionalHeaderFieldAsURI(
180+
let headers: Operations.MarkdownRenderRaw.Output.Ok.Headers = .init(xCommonMarkerVersion: try converter.getOptionalHeaderFieldAsURI(
181181
in: response.headerFields,
182182
name: "X-CommonMarker-Version",
183-
as: Components.Headers.x_hyphen_common_hyphen_marker_hyphen_version.self
183+
as: Components.Headers.XCommonMarkerVersion.self
184184
))
185185
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
186-
let body: Operations.markdown_sol_render_hyphen_raw.Output.Ok.Body
186+
let body: Operations.MarkdownRenderRaw.Output.Ok.Body
187187
let chosenContentType = try converter.bestContentType(
188188
received: contentType,
189189
options: [

0 commit comments

Comments
 (0)