We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea22ae0 commit a3f8ddbCopy full SHA for a3f8ddb
Tests/OpenAPIGeneratorReferenceTests/SnippetBasedReferenceTests.swift
@@ -1827,6 +1827,11 @@ final class SnippetBasedReferenceTests: XCTestCase {
1827
public struct MyResponse: Sendable, Hashable {
1828
@frozen public enum Body: Sendable, Hashable {
1829
case json(OpenAPIRuntime.Base64EncodedData)
1830
+ public var json: OpenAPIRuntime.Base64EncodedData {
1831
+ get throws {
1832
+ switch self { case let .json(body): return body }
1833
+ }
1834
1835
}
1836
public var body: Components.Responses.MyResponse.Body
1837
public init(
0 commit comments