moultingyaml
moultingyaml copied to clipboard
Scala wrapper for SnakeYAML
Although the yaml specification does not require conserving the order, snakeyaml does conserve the order. This makes it easier to round trip yaml to yaml or yaml to case class...
Looks like the SnakeYAML repository linked in the README has been made private and/or moved. Here's a working link to the new repository.
Would be great to have moultingyaml support Scala 3.
``` scala> import net.jcazevedo.moultingyaml._ import net.jcazevedo.moultingyaml._ scala> import net.jcazevedo.moultingyaml.DefaultYamlProtocol._ // if you don't supply your own protocol import net.jcazevedo.moultingyaml.DefaultYamlProtocol._ scala> implicit val fooFormat = yamlFormat2(Foo) fooFormat: net.jcazevedo.moultingyaml.YamlFormat[Foo] = net.jcazevedo.moultingyaml.ProductFormats$$anon$22@4d3fa7b5 scala>...
I am facing below issue while running a scala code on dataproc cluster. Code is running fine at local. [ [Exception in thread "main" java.lang.NoSuchMethodError: org.yaml.snakeyaml.Yaml.(Lorg/yaml/snakeyaml/LoaderOptions;)V]](url) `object mytestmain { def...
I want to serialize my yaml list inline, rather than producing to the more common multi-line rendering. Want: ```yaml foo: list: [this, list, of, stuff] ``` Default: ```yaml foo: list:...
Hi. The yamlFormatX methods in ProductFormats return the YF[A] type. This type is private to moultingyaml, and is an alias for YamlFormat[A]. This causes a problem for tools like Scalafix...
``` import net.jcazevedo.moultingyaml._ import net.jcazevedo.moultingyaml.DefaultYamlProtocol._ abstract class Symbolic { val id: String val name: Map[String, String] val description: Map[String, String] val symbol: Option[Char] val iterator: Iterator[Symbolic] } case class Infl(...
Refs #38 Using `ListMap` instead of `Map` should preserve the order of objects in `YamlObject`.
I am currently using moultingyaml and have ran into the issue of duplicate keys being dropped (see https://github.com/jcazevedo/moultingyaml/issues/12 ). The fix mentioned in the issue has been merged into snakeyaml...