yaml 2025-02-25

@tsulej has joined the channel

Hi there. Anyone knows how to generate the following yaml using clj-yaml.core/generate-string ?

filter:
  - nutshell

✅ 1

Answering myself:

(yaml/generate-string (yaml/parse-string "filter:
  - nutshell") :dumper-options {:indent 4 :indicator-indent 2 :flow-style :block})

🎉 1

@tsulej fyi: there is also #clj-yaml for clj-yaml specific questions.

👍 1