yaml

genmeblog 2025-02-25T14:28:06.768239Z

@tsulej has joined the channel

genmeblog 2025-02-25T14:30:43.815879Z

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

filter:
  - nutshell

✅ 1
genmeblog 2025-02-25T14:57:39.901979Z

Answering myself:

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

🎉 1
lread 2025-02-25T16:17:41.082989Z

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

👍 1