Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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