Skip to content

Commit

Permalink
address crossbuild syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouly committed Feb 18, 2021
1 parent a14f515 commit f85a4c6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import org.openapitools.openapistylevalidator.styleerror.StyleError
import sbt._
import sbt.plugins.JvmPlugin

import java.util.function.Consumer
import scala.collection.mutable.ListBuffer

object OpenApiStylePlugin
Expand Down Expand Up @@ -37,7 +38,9 @@ object OpenApiStylePlugin
val validator = new OpenApiSpecStyleValidator(openApi)

val errors = ListBuffer.empty[String]
validator.validate(parameters).forEach((t: StyleError) => errors += t.toString)
validator.validate(parameters).forEach(new Consumer[StyleError] {
override def accept(error: StyleError): Unit = errors += error.toString
})
errors.toList
},
openApiStyleValidate := {
Expand Down

0 comments on commit f85a4c6

Please sign in to comment.