(default-dumper-options)
clj-yaml 0.5.6 used SnakeYAML 1.13 which by default did not split long lines. clj-yaml 0.6.0 upgraded to SnakeYAML 1.23 which by default did split long lines. This ensures that generate-string uses the older behavior by default, for the sake of stability, i.e. backwards compatibility.
clj-yaml 0.5.6 used SnakeYAML 1.13 which by default did *not* split long lines. clj-yaml 0.6.0 upgraded to SnakeYAML 1.23 which by default *did* split long lines. This ensures that generate-string uses the older behavior by default, for the sake of stability, i.e. backwards compatibility.
(make-loader-options &
{:keys [max-aliases-for-collections allow-recursive-keys
allow-duplicate-keys]})
(make-yaml &
{:keys [dumper-options unsafe mark max-aliases-for-collections
allow-recursive-keys allow-duplicate-keys]})
Make a yaml encoder/decoder with some given options.
Make a yaml encoder/decoder with some given options.
(mark start end marked)
Mark some data with start and end positions.
Mark some data with start and end positions.
(marked? m)
Let us know whether this piece of data is marked with source positions.
Let us know whether this piece of data is marked with source positions.
(parse-string string
&
{:keys [unsafe mark keywords max-aliases-for-collections
allow-recursive-keys allow-duplicate-keys]
:or {keywords true}})
(unmark m)
Strip the source information from this piece of data, if it exists.
Strip the source information from this piece of data, if it exists.
A protocol for things that can be coerced to and from the types that snakeyaml knows how to encode and decode.
A protocol for things that can be coerced to and from the types that snakeyaml knows how to encode and decode.
(decode data keywords)
(encode data)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close