Repository navigation
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 |
|
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 |
|
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. |
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. ;) |
|
Doesn't snakeyaml use snakeyaml-engine internally? |
I don't think so.
|
|
Trying snakeyaml engine as the "backend" of this lib would likely solve #35 |
|
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. |
|
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. |
|
SnakeYAML Engine not only supports YAML 1.2 (superset of JSON), but also it drops the magic of JavaBean creation. |
|
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: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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,
All reactions