Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
6 changes: 3 additions & 3 deletions modules/core/src/test/scala/jsonrpclib/RawMessageSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,17 @@ object RawMessageSpec extends FunSuite {

expect.same(
decodeInput("""{"jsonrpc":"2.0","method":"greet","id":1}"""),
Right(InputMessage.RequestMessage("greet", CallId.NumberId(1), None))
Right(InputMessage.RequestMessage("greet", CallId.NumberId(1), Payload.Empty))
) &&
expect.same(
decodeInput("""{"jsonrpc":"2.0","method":"ping"}"""),
Right(InputMessage.NotificationMessage("ping", None))
Right(InputMessage.NotificationMessage("ping", Payload.Empty))
) &&
expect(decodeInput("""{"jsonrpc":"2.0","id":1,"result":null}""").isLeft)
}

test("input message codec serializes via Message encoder") {
val input: InputMessage = InputMessage.RequestMessage("greet", CallId.NumberId(0), None)
val input: InputMessage = InputMessage.RequestMessage("greet", CallId.NumberId(0), Payload.Empty)
val expected = """{"jsonrpc":"2.0","method":"greet","id":0}"""

expect(writeToString(input.asJson) == expected)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object JsonNotificationOutputValidatorSpec extends FunSuite {
|operation NotifySomething {
|}
|""".stripMargin
)
): Unit
success
}
test("return an error when a @jsonNotification operation does not have unit output") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object JsonRpcOperationValidatorSpec extends FunSuite {
| output: unit
|}
|""".stripMargin
)
): Unit
success
}

Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.12.9
sbt.version=1.12.11
12 changes: 6 additions & 6 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.1")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")

addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.3")

addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.1")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.5")

addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.10.0")

Expand All @@ -12,10 +12,10 @@ addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.11")

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.3.1")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.4")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.6.0")

addSbtPlugin("com.disneystreaming.smithy4s" % "smithy4s-sbt-codegen" % "0.18.51")
addSbtPlugin("com.disneystreaming.smithy4s" % "smithy4s-sbt-codegen" % "0.19.4")

addSbtPlugin("org.polyvariant" % "smithy-trait-codegen-sbt" % "0.2.2")
addSbtPlugin("org.polyvariant" % "smithy-trait-codegen-sbt" % "0.2.3")

addDependencyTreePlugin
Loading