If the OpenAPI spec does not contain a server URL, the package does not compile without warnings anymore:
/private/var/folders/6g/w8x1jq613lxb8rywcsr6c2sr0000gn/T/tmp.kMsrdZjt6T/Test/.build/plugins/outputs/test/MyAPI/destination/OpenAPIGenerator/GeneratedSources/Types.swift:11:9: error: package import of 'Foundation' was not used in package declarations [#UnusedImportAccess]
9 | package import struct Foundation.URL
10 | package import struct Foundation.Data
11 | package import struct Foundation.Date
| `- error: package import of 'Foundation' was not used in package declarations [#UnusedImportAccess]
12 | #endif
13 | /// A type that performs HTTP operations defined by the OpenAPI document.
Build the attached package with swift build -Xswiftc -warnings-as-errors to reproduce.
Test.zip
If the OpenAPI spec does not contain a server URL, the package does not compile without warnings anymore:
Build the attached package with
swift build -Xswiftc -warnings-as-errorsto reproduce.Test.zip