Skip to content

Commit

Permalink
Merge branch 'master' into ox-websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
kciesielski committed May 24, 2024
2 parents f593c6e + 092a8d0 commit 7ce3bbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ lazy val sprayJson = (projectMatrix in file("json/spray-json"))
),
scalaTest
)
.jvmPlatform(scalaVersions = scala2)
.jvmPlatform(scalaVersions = scala2 ++ scala3)
.dependsOn(core, jsonCommon)

lazy val play29Json = (projectMatrix in file("json/play29-json"))
Expand Down Expand Up @@ -971,7 +971,7 @@ lazy val prometheusBackend = (projectMatrix in file("observability/prometheus-ba
.settings(
name := "prometheus-backend",
libraryDependencies ++= Seq(
"io.prometheus" % "prometheus-metrics-core" % "1.3.0"
"io.prometheus" % "prometheus-metrics-core" % "1.3.1"
),
scalaTest
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@ package sttp.client4

import org.scalatest.EitherValues
import spray.json.DefaultJsonProtocol._
import spray.json.DefaultJsonProtocol.RootJsObjectFormat
import spray.json.JsonParser.ParsingException
import spray.json.{DeserializationException => _, _}
import sttp.client4.SprayJsonTests._
import sttp.client4.internal.Utf8
import sttp.client4.sprayJson._
import sttp.client4.sprayJson.{sprayBodySerializer, _}
import sttp.model._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

class SprayJsonTests extends AnyFlatSpec with Matchers with EitherValues {
behavior of "The spray-json module"

implicit private val jsObjectSerializer: BodySerializer[JsObject] = sprayBodySerializer(RootJsObjectFormat)

it should "encode arbitrary json bodies" in {
val body = Outer(Inner(42, true, "horses"), "cats")

Expand Down

0 comments on commit 7ce3bbb

Please sign in to comment.