Skip to content

Commit 6097525

Browse files
committed
Commit via running ake Sources/markdown
1 parent 8e61aa1 commit 6097525

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

Sources/markdown/Types.swift

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ extension APIProtocol {
6363

6464
/// Server URLs defined in the OpenAPI document.
6565
public enum Servers {
66+
public enum Server1 {
67+
public static func url() throws -> Foundation.URL {
68+
try Foundation.URL(
69+
validatingOpenAPIServerURL: "https://api.github.com",
70+
variables: []
71+
)
72+
}
73+
}
74+
@available(*, deprecated, renamed: "Servers.Server1.url")
6675
public static func server1() throws -> Foundation.URL {
6776
try Foundation.URL(
6877
validatingOpenAPIServerURL: "https://api.github.com",
@@ -129,7 +138,7 @@ public enum Operations {
129138
/// The rendering mode.
130139
///
131140
/// - Remark: Generated from `#/paths/markdown/POST/requestBody/json/mode`.
132-
@frozen public enum modePayload: String, Codable, Hashable, Sendable {
141+
@frozen public enum modePayload: String, Codable, Hashable, Sendable, CaseIterable {
133142
case markdown = "markdown"
134143
case gfm = "gfm"
135144
}
@@ -268,6 +277,14 @@ public enum Operations {
268277
///
269278
/// HTTP response code: `304 notModified`.
270279
case notModified(Components.Responses.not_modified)
280+
/// Not modified
281+
///
282+
/// - Remark: Generated from `#/paths//markdown/post(markdown/render)/responses/304`.
283+
///
284+
/// HTTP response code: `304 notModified`.
285+
public static var notModified: Self {
286+
.notModified(.init())
287+
}
271288
/// The associated value of the enum case if `self` is `.notModified`.
272289
///
273290
/// - Throws: An error if `self` is not `.notModified`.
@@ -435,6 +452,14 @@ public enum Operations {
435452
///
436453
/// HTTP response code: `304 notModified`.
437454
case notModified(Components.Responses.not_modified)
455+
/// Not modified
456+
///
457+
/// - Remark: Generated from `#/paths//markdown/raw/post(markdown/render-raw)/responses/304`.
458+
///
459+
/// HTTP response code: `304 notModified`.
460+
public static var notModified: Self {
461+
.notModified(.init())
462+
}
438463
/// The associated value of the enum case if `self` is `.notModified`.
439464
///
440465
/// - Throws: An error if `self` is not `.notModified`.

0 commit comments

Comments
 (0)