Skip to content

[Question] [Swift6] All Codable classes into querystring #20997

@x-sheep

Description

@x-sheep

In the current Swift6 generator (and Swift5) with version 7.13.0-snapshot a non-standard class that conforms to Encodable is serialized by first converting it to JSON, and then base64-encoding the result.

Is this being used at all? It would seem much nicer to me if this was done explicitly by a user, and leave only the serialization of Data (byte arrays) to Base64 as a standard. Right now, this behavior is implicit whenever an object is passed into a request that uses it as a query parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions