Skip to content

Commit

Permalink
Update snakeyaml dependency to 2.0 (#974)
Browse files Browse the repository at this point in the history
* Update snakeyaml dependency to 2.0

* Remove unused import
  • Loading branch information
VinceMacBuche authored Jul 3, 2023
1 parent 4254970 commit 13fa6d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ lazy val zioJsonYaml = project
.settings(buildInfoSettings("zio.json.yaml"))
.settings(
libraryDependencies ++= Seq(
"org.yaml" % "snakeyaml" % "1.33",
"org.yaml" % "snakeyaml" % "2.0",
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-test" % zioVersion % "test",
"dev.zio" %% "zio-test-sbt" % zioVersion % "test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ package zio.json.yaml.internal

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

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

Expand Down

0 comments on commit 13fa6d9

Please sign in to comment.