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

The output formatting of JSON encoding/decoding should be more configurable #605

Closed
jakepetroules opened this issue Jul 27, 2024 · 1 comment
Labels
kind/feature New feature.

Comments

@jakepetroules
Copy link
Member

Motivation

I never ever want to emit JSON without the .withoutEscapingSlashes option, since it drastically reduces readability in JSON payloads where file paths are prevalent.

Proposed solution

Please consider making Converter.encoder public or providing an option to pass in an array of outputFormatting flags.

Alternatives considered

No response

Additional information

No response

@jakepetroules jakepetroules added kind/feature New feature. status/triage Collecting information required to triage the issue. labels Jul 27, 2024
@czechboy0 czechboy0 removed the status/triage Collecting information required to triage the issue. label Jul 29, 2024
@czechboy0
Copy link
Contributor

Fixed in apple/swift-openapi-runtime#112

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

No branches or pull requests

2 participants