yegor256 / tojos

Text Object Java Objects (TOJOs): an object representation of a multi-line structured text file like CSV, YAML, or JSON
MIT License
20 stars 9 forks source link

YAML file can't be read by `MnYaml` #66

Open h1alexbel opened 1 year ago

h1alexbel commented 1 year ago

using MnYaml, I can't read my test.yml file:

final Mono yaml = new MnYaml(
  "src/test/resources/test.yml"
);
yaml.read(); // exception raised

On yaml.read() I've got the following exception: java.lang.ClassCastException: class java.util.LinkedHashMap cannot be cast to class java.util.Collection

Fix this please