Closed GoogleCodeExporter closed 9 years ago
The same issue occurs if you replace a Map with a List.
Original comment by infinity0x@gmail.com
on 2 Jul 2009 at 4:56
Original comment by py4fun@gmail.com
on 3 Jul 2009 at 9:13
Original comment by py4fun@gmail.com
on 3 Jul 2009 at 9:13
Fixed. Now the document looks like:
gold1: !!org.yaml.MapYamlTest$Bean {a: ''}
gold2: !!org.yaml.MapYamlTest$Bean {a: ''}
The problem was that SnakeYAML assumes that a JavaBean is the root of the YAML
document. This is how it is typically used. It also allows to completely
eliminate
the class declaration and exchange the YAML documents with other programming
languages. For instance if the example above is emitted as simply:
gold1: {a: ''}
gold2: {a: ''}
then it is very well possible to parse this document in Python.
Thank you for the contribution.
-Andrey
Original comment by aso...@gmail.com
on 3 Jul 2009 at 4:15
ah, ok. thanks for the quick fix! :)
Original comment by infinity0x@gmail.com
on 5 Jul 2009 at 1:40
Original issue reported on code.google.com by
infinity0x@gmail.com
on 2 Jul 2009 at 4:54