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

Add key encoding strategy to YAMLEncoder #84

Open
norio-nomura opened this issue Nov 6, 2017 · 1 comment
Open

Add key encoding strategy to YAMLEncoder #84

norio-nomura opened this issue Nov 6, 2017 · 1 comment

Comments

@norio-nomura
Copy link
Collaborator

See: swiftlang/swift#12779

How should YAMLEncoder options be?
A. Rename options to emitterOptions, then add keyEncodingStrategy to YAMLEncoder
B. Add YAMLEncoder.options.keyEncodingStrategy

@jpsim
Copy link
Owner

jpsim commented Nov 7, 2017

I think I prefer B.

Also, convertToSnakeCase/convertFromSnakeCase could be just as useful for YAML as it is for JSON.

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

No branches or pull requests

2 participants