Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
x-sheep opened this issue Mar 31, 2025 · 1 comment
Open

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

x-sheep opened this issue Mar 31, 2025 · 1 comment

Comments

@x-sheep
Copy link
Contributor

x-sheep commented Mar 31, 2025

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.

@x-sheep
Copy link
Contributor Author

x-sheep commented Apr 4, 2025

Tagging @4brunu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant