Replies: 11 comments
-
Hi @ieugen, are you suggesting that we change Are there any user-visible benefits from that upgrade? FWIW, in recent projects at CircleCI, I've taken to using SnakeYAML directly, rather than |
Beta Was this translation helpful? Give feedback.
-
If I may chime in, as an outsider:
So I'm not exactly sure which is the "new" library, and what the difference between the APIs is, and what improvements to switching. There is a Google Group (https://groups.google.com/g/snakeyaml-core), is someone is interested in venturing deeper. Cheers |
Beta Was this translation helpful? Give feedback.
-
As far as I understand, the biggest difference is that snakeyaml supports YAML 1.1, whereas snakeyaml-engine supports YAML 1.2. My usecases of YAML all involve very simple YAML files, so I can't bring to mind a clojure use-case where this would matter. |
Beta Was this translation helpful? Give feedback.
-
Thank you, @wongjoel . I agree that this is the biggest difference between snakeyaml and snakeyaml-engine. Looks like YAML 1.2 is designed to move it closer to a superset of JSON (i.e., explicitly support JSON). There's also some internal changes to make smaller modules it looks like. Some references:
Migration to snakeyaml-engine would be a nice addition, but probably a low priority. We can throw the YAML 1.2 files from the spec at the unit tests and see what happens. If I have the time, I'll take a stab at it. ;) |
Beta Was this translation helpful? Give feedback.
-
Doesn't snakeyaml use snakeyaml-engine internally? |
Beta Was this translation helpful? Give feedback.
-
I don't think so.
|
Beta Was this translation helpful? Give feedback.
-
Trying snakeyaml engine as the "backend" of this lib would likely solve #35 |
Beta Was this translation helpful? Give feedback.
-
As this is not an issue, but more something to be aware of, I converted this to a discussion. Issues are going to be used for things that are ready to be worked on. |
Beta Was this translation helpful? Give feedback.
-
Doing some more reading since looking into using yaml as a configuration language. I think version 1.2 makes things more strict and resolves some of the issues that might surprise you when parsing yaml. Since I am planning to parse yaml configuration and use it as code I would like to be as strict as possible.
In my opinion, yaml 1.2 is a safer choice - since it was simplified. |
Beta Was this translation helpful? Give feedback.
-
SnakeYAML Engine not only supports YAML 1.2 (superset of JSON), but also it drops the magic of JavaBean creation. |
Beta Was this translation helpful? Give feedback.
-
A solution would be to release a new clj-yaml version that uses snake-yaml-engine and breaks compatibility with the old version. It seems that snake-yaml engine uses a different package: |
Beta Was this translation helpful? Give feedback.
-
Hi,
To whom it may concern, there is snakeyaml-engine - which is the new/refactored version of the library https://bitbucket.org/asomov/snakeyaml-engine/src/master/ .
There are some changes here and a wiki with documentation https://bitbucket.org/asomov/snakeyaml-engine/wiki/Changes .
Load api for yaml in version 2.3 https://javadoc.io/doc/org.snakeyaml/snakeyaml-engine/latest/org/snakeyaml/engine/v2/api/Load.html
Regards,
Beta Was this translation helpful? Give feedback.
All reactions