Skip to content

Commit c87129b

Browse files
committed
even modify proposal
1 parent 08acd34 commit c87129b

File tree

1 file changed

+3
-8
lines changed
  • Sources/swift-openapi-generator/Documentation.docc/Proposals

1 file changed

+3
-8
lines changed

Sources/swift-openapi-generator/Documentation.docc/Proposals/SOAR-0007.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public enum Operations {
181181

182182
This proposal covers generating the following additional API surface to
183183
simplify providing inputs.
184-
184+
185185
```swift
186186
extension APIProtocol {
187187
// The parameters to each overload will match those of the corresponding
@@ -202,7 +202,7 @@ extension APIProtocol {
202202
This proposal also covers generating the following additional API surface to
203203
simplify handling outputs.
204204

205-
```swift
205+
```swift
206206
// Note: Generating an extension is not prescriptive; implementations may
207207
// generate these properties within the primary type definition.
208208
extension Operations.getGreeting.Output {
@@ -321,15 +321,10 @@ Generated using the following command:
321321
// -----------
322322
// Generated by swift-openapi-generator, do not modify.
323323
@_spi(Generated) import OpenAPIRuntime
324-
#if os(Linux)
325-
@preconcurrency import struct Foundation.URL
326-
@preconcurrency import struct Foundation.Data
327-
@preconcurrency import struct Foundation.Date
328-
#else
329324
import struct Foundation.URL
330325
import struct Foundation.Data
331326
import struct Foundation.Date
332-
#endif
327+
333328
/// A type that performs HTTP operations defined by the OpenAPI document.
334329
public protocol APIProtocol: Sendable {
335330
/// - Remark: HTTP `GET /greet`.

0 commit comments

Comments
 (0)