All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.json.yaml.internal.YamlValueConstruction.scala Maven / Gradle / Ivy

package zio.json.yaml.internal

import org.yaml.snakeyaml.constructor.SafeConstructor
import org.yaml.snakeyaml.nodes.{ MappingNode, Node }
import org.yaml.snakeyaml.LoaderOptions

private[yaml] final class YamlValueConstruction extends SafeConstructor(new LoaderOptions()) {
  def toJavaValue(node: Node): AnyRef =
    getConstructor(node).construct(node)

  def processMappingNode(node: MappingNode): MappingNode = {
    flattenMapping(node)
    node
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy