Skip to content

[BUG][Swift6] Numerous compilation issues with Swift 6 generator + Alamofire 5.10.x #20398

@lilidotshi

Description

@lilidotshi

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
Description

Updating to Alamofire 5.10.x causes multiple compilation issues around Sendable.

In particular, the following classes have issues:

Class Error
extension JSONDataEncoding Conformance to 'Sendable' must occur in the same source file as struct 'JSONDataEncoding'; use '@unchecked Sendable' for retroactive conformance
AnyResponseSerializer Type 'AnyResponseSerializer.SerializedObject' (aka 'T') does not conform to the 'Sendable' protocol
openapi-generator version

7.10.0

Generation Details

This is one of the Infrastructure files generated along with any scheme.

Steps to reproduce

use the Swift 6 generator with the latest alamofire 5.10.x and observe that it does not compile due to a bunch of swift 6 errors

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions