Skip to content

Commit

Permalink
return null node to prevent match errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisjkl committed Nov 30, 2023
1 parent 2e8dcfd commit 94d1d3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/openapi/src/internals/GetExtensions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ object GetExtensions {
case c: java.util.Collection[_] =>
Node.fromNodes(c.asScala.map(anyToNode).toList.asJava)
case j: JsonNode => jacksonToSmithy(j)
case _ => Node.nullNode() // if nothing is found, to prevent match errors
}

private def jacksonToSmithy(jn: JsonNode): Node = jn match {
Expand Down

0 comments on commit 94d1d3c

Please sign in to comment.