Skip to content

Commit e778e28

Browse files
authored
Merge branch 'master' into update/cats-4.0.26
2 parents e4108b3 + ca1f60f commit e778e28

104 files changed

Lines changed: 1788 additions & 665 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.git-blame-ignore-revs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,9 @@ da85b978db204adf6f236bfd4e453628a6d4cdda
8484

8585
# Scala Steward: Reformat with scalafmt 3.11.1
8686
17d6746ee877b9c0e3f15602b6aed0dfa16e1691
87+
88+
# Scala Steward: Reformat with scalafmt 3.11.2
89+
400127d53ebf236548879443afc5b8d08afdd625
90+
91+
# Scala Steward: Reformat with scalafmt 3.11.3
92+
0bc1a9c10d5f2a78304535fdcb74b60c43c70839

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.11.1
1+
version = 3.11.3
22
maxColumn = 140
33
runner.dialect = scala213source3
44
fileOverride {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ val booksListingRequest: Request[DecodeResult[Either[String, List[Book]]]] =
139139
Add the following dependency:
140140

141141
```sbt
142-
"com.softwaremill.sttp.tapir" %% "tapir-core" % "1.13.26"
142+
"com.softwaremill.sttp.tapir" %% "tapir-core" % "1.13.27"
143143
```
144144

145145
Then, import:

build.sbt

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -415,21 +415,23 @@ val clientTestServerSettings = Seq(
415415
})
416416
)
417417

418-
lazy val superMatrixSettings = Seq((Compile / unmanagedSourceDirectories) ++= {
419-
val allCombos = List("js", "jvm", "native").combinations(2).toList
420-
val dis =
421-
virtualAxes.value.collectFirst { case p: VirtualAxis.PlatformAxis =>
422-
p.directorySuffix
423-
}.get
424-
425-
allCombos
426-
.filter(_.contains(dis))
427-
.map { suff =>
428-
val suffixes = "scala" + suff.mkString("-", "-", "")
429-
430-
(Compile / sourceDirectory).value / suffixes
431-
}
432-
})
418+
lazy val superMatrixSettings = Seq(
419+
(Compile / unmanagedSourceDirectories) ++= {
420+
val allCombos = List("js", "jvm", "native").combinations(2).toList
421+
val dis =
422+
virtualAxes.value.collectFirst { case p: VirtualAxis.PlatformAxis =>
423+
p.directorySuffix
424+
}.get
425+
426+
allCombos
427+
.filter(_.contains(dis))
428+
.map { suff =>
429+
val suffixes = "scala" + suff.mkString("-", "-", "")
430+
431+
(Compile / sourceDirectory).value / suffixes
432+
}
433+
}
434+
)
433435

434436
lazy val clientTestServer = (projectMatrix in file("client/testserver"))
435437
.settings(commonSettings)
@@ -475,7 +477,7 @@ lazy val core: ProjectMatrix = (projectMatrix in file("core"))
475477
libraryDependencies ++= {
476478
CrossVersion.partialVersion(scalaVersion.value) match {
477479
case Some((3, _)) =>
478-
Seq("com.softwaremill.magnolia1_3" %%% "magnolia" % "1.3.21")
480+
Seq("com.softwaremill.magnolia1_3" %%% "magnolia" % "1.3.22")
479481
case _ =>
480482
Seq(
481483
"com.softwaremill.magnolia1_2" %%% "magnolia" % "1.1.14",
@@ -2282,7 +2284,7 @@ lazy val openapiCodegenCore: ProjectMatrix = (projectMatrix in file("openapi-cod
22822284
scalaTestPlusScalaCheck.value % Test,
22832285
"com.47deg" %% "scalacheck-toolbox-datetime" % "0.7.0" % Test,
22842286
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-core" % "2.38.16" % Test,
2285-
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-macros" % "2.38.17" % Provided
2287+
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-macros" % "2.39.0" % Provided
22862288
)
22872289
)
22882290
.dependsOn(core % Test, circeJson % Test, jsoniterScala % Test, zioJson % Test)

core/src/test/scala/sttp/tapir/EndpointTest.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,12 @@ class EndpointTest extends AnyFlatSpec with EndpointTestExtensions with Matchers
486486
.mapInTo[EndpointTestFixtures.NestedWrapper]: PublicEndpoint[EndpointTestFixtures.NestedWrapper, Unit, Unit, Any]
487487
endpoint
488488
.in(query[String]("q1"))
489-
.mapInTo[EndpointTestFixtures.Inner.DoublyNestedWrapper]: PublicEndpoint[EndpointTestFixtures.Inner.DoublyNestedWrapper, Unit, Unit, Any]
489+
.mapInTo[EndpointTestFixtures.Inner.DoublyNestedWrapper]: PublicEndpoint[
490+
EndpointTestFixtures.Inner.DoublyNestedWrapper,
491+
Unit,
492+
Unit,
493+
Any
494+
]
490495
endpoint
491496
.in(query[String]("q1"))
492497
.mapInTo[ClassNestedFixtures.NestedWrapper]: PublicEndpoint[ClassNestedFixtures.NestedWrapper, Unit, Unit, Any]

doc/generator/sbt-openapi-codegen.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ openapiPackageDependencies Map.empty[String, String] Allow
5858
to a Map[String, Seq[String]] in the near future to permit multiple 'inheritance', and there may be bugs in the implementation.
5959
openapiSeperateFilesForModels false When true, models will be written to individual files under $pkg.models, with type aliases and helpers living under `package.scala` in a package object
6060
openapiAlwaysGenerateParamSupport false When true, all enums will be generated with param & json support, even if not used in those positions. This is useful for definitions that will be reused with `openapiPackageDependencies`
61+
openapiAddDisambiguationCodes false When true, if multiple status codes in same group (i.e. all error, or all success) return the same schema, they will be paired with a status code object as (T, StatusCode).
62+
'Default' codes will map to an additional StatusCode output. When false, the type will remain a T and default codes will be treated as 400s.
6163
===================================== ==================================== ==================================================================================================
6264
```
6365

examples/src/main/scala/sttp/tapir/examples/observability/OpenTelemetryTracingExample.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//> using dep com.softwaremill.sttp.tapir::tapir-netty-server-sync:1.11.18
44
//> using dep com.softwaremill.sttp.tapir::tapir-json-circe:1.11.18
55
//> using dep com.softwaremill.sttp.tapir::tapir-opentelemetry-tracing:1.13.26
6-
//> using dep io.opentelemetry:opentelemetry-exporter-otlp:1.63.0
7-
//> using dep io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:1.63.0
6+
//> using dep io.opentelemetry:opentelemetry-exporter-otlp:1.64.0
7+
//> using dep io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:1.64.0
88
//> using dep ch.qos.logback:logback-classic:1.5.17
99

1010
package sttp.tapir.examples.observability

examples/src/main/scala/sttp/tapir/examples/observability/ZIOpenTelemetryExample.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
//> using dep com.softwaremill.sttp.tapir::tapir-zio-http-server:1.13.26
66
//> using dep com.softwaremill.sttp.tapir::tapir-zio-opentelemetry:1.13.26
77
//> using dep dev.zio::zio-opentelemetry:3.1.17
8-
//> using dep io.opentelemetry:opentelemetry-sdk:1.63.0
9-
//> using dep io.opentelemetry:opentelemetry-exporter-otlp:1.63.0
10-
//> using dep io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:1.63.0
8+
//> using dep io.opentelemetry:opentelemetry-sdk:1.64.0
9+
//> using dep io.opentelemetry:opentelemetry-exporter-otlp:1.64.0
10+
//> using dep io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:1.64.0
1111

1212
package sttp.tapir.examples.observability
1313

generated-doc/out/client/http4s.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Add the dependency:
44

55
```scala
6-
"com.softwaremill.sttp.tapir" %% "tapir-http4s-client" % "1.13.26"
6+
"com.softwaremill.sttp.tapir" %% "tapir-http4s-client" % "1.13.27"
77
```
88

99
To interpret an endpoint definition as an `org.http4s.Request[F]`, import:

generated-doc/out/client/play.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ See the [Play framework documentation](https://www.playframework.com/documentati
66
For **Play 3.0**, add the dependency:
77

88
```scala
9-
"com.softwaremill.sttp.tapir" %% "tapir-play-client" % "1.13.26"
9+
"com.softwaremill.sttp.tapir" %% "tapir-play-client" % "1.13.27"
1010
```
1111

1212
For **Play 2.9**, add
1313

1414
```scala
15-
"com.softwaremill.sttp.tapir" %% "tapir-play29-client" % "1.13.26"
15+
"com.softwaremill.sttp.tapir" %% "tapir-play29-client" % "1.13.27"
1616
```
1717

1818
instead. Furthermore, replace all uses of `sttp.capabilities.pekko.PekkoStreams` in the following code snippets with `sttp.capabilities.akka.AkkaStreams`.

0 commit comments

Comments
 (0)