Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Issue148Suite extends AnyFunSuite with Matchers with EitherValues with Sca
.withHeaders(RawHeader("x-header", "false"))
.withEntity(ContentTypes.`application/json`, "{}") ~> route ~> check {
rejection match {
case ex: MalformedRequestContentRejection => ex.message shouldBe "Missing required field: DownField(type)"
case ex: MalformedRequestContentRejection => ex.message shouldBe "DecodingFailure at .type: Missing required field"
}
}

Expand All @@ -95,7 +95,7 @@ class Issue148Suite extends AnyFunSuite with Matchers with EitherValues with Sca
.withHeaders(RawHeader("x-header", "false"))
.withEntity(ContentTypes.`application/json`, """{"type": "blep"}""") ~> route ~> check {
rejection match {
case ex: MalformedRequestContentRejection => ex.message shouldBe "Unknown value blep (valid: Bar): DownField(type)"
case ex: MalformedRequestContentRejection => ex.message shouldBe "DecodingFailure at .type: Unknown value blep (valid: Bar)"
}
}

Expand All @@ -109,7 +109,7 @@ class Issue148Suite extends AnyFunSuite with Matchers with EitherValues with Sca
.withHeaders(RawHeader("x-header", "false"))
.withEntity(ContentTypes.`application/json`, """{"type": "Bar"}""") ~> route ~> check {
rejection match {
case ex: MalformedRequestContentRejection => ex.message shouldBe "Missing required field: DownField(name)"
case ex: MalformedRequestContentRejection => ex.message shouldBe "DecodingFailure at .name: Missing required field"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ class ValidationTest extends AnyFreeSpec with Matchers with EitherValues {
)
.left
.value
.toString
.contains("""DecodingFailure(Predicate failed: "does not match"""") shouldBe true
.toString should include("""Predicate failed: "does not match"""")
}

"should fail if collection elements rejected by the predicate (number)" in {
Expand Down
2 changes: 1 addition & 1 deletion project/src/main/scala/modules/scalaAkkaHttp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ object scalaAkkaHttp {
val akkaHttpVersion = "10.2.10"
val akkaVersion = "2.6.20"
val catsVersion = "2.10.0"
val circeVersion = "0.14.3"
val circeVersion = "0.14.6"
val hibernateVersion = "6.2.5.Final"
val jacksonVersion = "2.15.2"
val javaxAnnotationVersion = "1.3.2"
Expand Down
2 changes: 1 addition & 1 deletion project/src/main/scala/modules/scalaHttp4s.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import sbt.Keys._

object scalaHttp4s {
val catsVersion = "2.10.0"
val circeVersion = "0.14.3"
val circeVersion = "0.14.6"
val javaxAnnotationVersion = "1.3.2"
val jaxbApiVersion = "2.3.1"
val scalatestVersion = "3.2.17"
Expand Down