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

Support configuration option for mapping style format #275

Open
dsayling opened this issue Jan 31, 2024 · 0 comments
Open

Support configuration option for mapping style format #275

dsayling opened this issue Jan 31, 2024 · 0 comments

Comments

@dsayling
Copy link

Description

It would be great to have a feature like that of export YAMLFIX_SEQUENCE_STYLE="flow_style", but for mappings.

Possibly, export YAMLFIX_MAPPING_STYLE="flow_style"

Possible Solution

Set to true (flow-style):

---
map: { key: val, other: item }

Set to false (block-style):

---
map:
  key: val
  other: item

Additional context

Other possibilities include whatever this style is

---
map:
  {
    key: val
    other: item
  }

Related Issue

None that I could see

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