Fork me on GitHub
#clj-yaml
<
2023-03-04
>
kwladyka19:03:58

When read large YAML

The incoming YAML document exceeds the limit: 3145728 code points.
the code_point_limit is needed to overwrite, but I didn’t find a way to do this with clj-yaml. How do you read large YAML files?

borkdude20:03:05

@kwladyka There isn't currently an option, but you can call make-loader followed by (.setCodePointLimit ...) on it. But I don't see where you can then pass that loader. That should probably be added as well, along with an explicit option for the :code-point-limit - what do you think @lee?

👍 2
lread20:03:56

Ya, was just typing similar!

borkdude20:03:33

Issue welcome @kwladyka - optionally also a PR, if you're in for it

borkdude20:03:28

@kwladyka Are you comfortable doing a PR yourself or would you rather defer to us?

kwladyka20:03:59

sorry, this is very side thing for hobby and I am very tired last time to take more coding

borkdude20:03:32

no problem :)

👍 2