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

Allow configuring the way "must quote" is determined for property names, String values #229

Closed
cowtowncoder opened this issue Oct 2, 2020 · 1 comment
Labels
yaml Issue related to YAML format backend
Milestone

Comments

@cowtowncoder
Copy link
Member

(note: inspired by #226 and #68 before that)

Since there are different preferences on quoting various keys, String values, it may not be possible to find perfect set that works for everyone. So let's allow configuring of the set; YAMLMapper.builder() should make it possible.

@cowtowncoder cowtowncoder added 2.12 yaml Issue related to YAML format backend labels Oct 2, 2020
cowtowncoder added a commit that referenced this issue Oct 3, 2020
cowtowncoder added a commit that referenced this issue Oct 3, 2020
@cowtowncoder cowtowncoder changed the title Allow configuring "must-quote" Set of ids for keys, String values Allow configuring the way "must quote" is determined for property names, String values Oct 3, 2020
@cowtowncoder
Copy link
Member Author

Decided to make things bit more configurable by introducing StringQuotingChecker abstraction, configurable via YAMLFactory.builder(); base implementation StringQuotingChecker.Default.

@cowtowncoder cowtowncoder added this to the 2.12.0 milestone Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
yaml Issue related to YAML format backend
Projects
None yet
Development

No branches or pull requests

1 participant