Skip to content

Commit

Permalink
Merge branch 'master' into update/scala3-library-3.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw authored Dec 19, 2024
2 parents fc411cc + 7f079cf commit e7c640e
Show file tree
Hide file tree
Showing 187 changed files with 3,404 additions and 774 deletions.
3 changes: 2 additions & 1 deletion .scalafix.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
OrganizeImports.groupedImports = AggressiveMerge
OrganizeImports.targetDialect = Scala3
OrganizeImports.targetDialect = Scala3
OrganizeImports.removeUnused = false
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ Please email us at [[email protected]](mailto:[email protected]) from
| <a href="https://www.broad.app"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/broad.png" alt="Broad" width="160"/></a> | <a href="https://www.kensu.io?utm_source=github&utm_campaign=tapir"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/kensu.png" alt="Kensu" width="160"/></a> | <a href="https://www.colisweb.com"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/colisweb.png" alt="Colisweb" width="160"/></a> |
| <a href="http://www.iceo.co/"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/iceo.png" alt="iceo" width="160"/></a> | <a href="http://www.dpgrecruitment.nl/"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/dpg-recruitment.svg" alt="dpg" width="160"/></a> | <a href="https://www.hunters.security/"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/hunters.png" alt="hunters" width="160"/></a> |
| <a href="https://www.moia.io/en"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/moia.png" alt="moia" width="160"/></a> | <a href="https://www.pitsdatarecovery.net"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/pits.svg" alt="pits" width="100"/></a> | <a href="https://www.hootsuite.com"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/hootsuite.png" alt="hootsuite" width="160"/></a> |
| <a href="https://www.ematiq.com/"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/ematiq.png" alt="ematiq" width="100"/></a> | <a href="https://www.fugo.ai/"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/fugo.png" alt="fugo" width="100"/></a> | <a href="https://budgetbakers.com/"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/budgetbakers.svg" alt="budgetbakers" width="100"/></a> |
| | <a href="https://flo.health"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/flo.svg" alt="flo" width="100"/></a> | |

## Teaser

Expand Down Expand Up @@ -137,7 +139,7 @@ val booksListingRequest: Request[DecodeResult[Either[String, List[Book]]], Any]
Add the following dependency:

```sbt
"com.softwaremill.sttp.tapir" %% "tapir-core" % "1.11.5"
"com.softwaremill.sttp.tapir" %% "tapir-core" % "1.11.10"
```

Then, import:
Expand Down Expand Up @@ -204,6 +206,8 @@ Fetch the tags from the upstream:
git fetch --tags upstream
```

When you have a PR ready, take a look at our ["How to prepare a good PR" guide](https://softwaremill.community/t/how-to-prepare-a-good-pr-to-a-library/448). Thanks! :)

## Scoping which projects are included by `sbt`

* when `STTP_NATIVE` is set, Scala native projects are included in the build (when running `sbt`)
Expand Down
21 changes: 12 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ val commonSettings = commonSmlBuildSettings ++ ossPublishSettings ++ Seq(
case _ => Seq("-Xmax-inlines", "64")
}
},
Test / scalacOptions += "-Wconf:msg=unused value of type org.scalatest.Assertion:s",
Test / scalacOptions += "-Wconf:msg=unused value of type org.scalatest.compatible.Assertion:s",
evictionErrorLevel := Level.Info
)

Expand Down Expand Up @@ -422,7 +424,7 @@ lazy val core: ProjectMatrix = (projectMatrix in file("core"))
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) =>
Seq("com.softwaremill.magnolia1_3" %%% "magnolia" % "1.3.7")
Seq("com.softwaremill.magnolia1_3" %%% "magnolia" % "1.3.8")
case _ =>
Seq(
"com.softwaremill.magnolia1_2" %%% "magnolia" % "1.1.10",
Expand Down Expand Up @@ -525,10 +527,10 @@ lazy val perfTests: ProjectMatrix = (projectMatrix in file("perf-tests"))
"jackson-databind"
),
"io.gatling" % "gatling-test-framework" % "3.11.5" % "test" exclude ("com.fasterxml.jackson.core", "jackson-databind"),
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.17.2",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.18.2",
"nl.grons" %% "metrics4-scala" % Versions.metrics4Scala % Test,
"com.lihaoyi" %% "scalatags" % Versions.scalaTags % Test,
"io.github.classgraph" % "classgraph" % "4.8.176",
"io.github.classgraph" % "classgraph" % "4.8.179",
"org.http4s" %% "http4s-core" % Versions.http4s,
"org.http4s" %% "http4s-dsl" % Versions.http4s,
"org.http4s" %% "http4s-blaze-server" % Versions.http4sBlazeServer,
Expand All @@ -547,6 +549,7 @@ lazy val perfTests: ProjectMatrix = (projectMatrix in file("perf-tests"))
.jvmPlatform(scalaVersions = List(scala2_13), settings = commonJvmSettings)
.dependsOn(
core,
circeJson,
pekkoHttpServer,
http4sServer,
nettyServer,
Expand Down Expand Up @@ -996,7 +999,7 @@ lazy val pekkoGrpcExamples: ProjectMatrix = (projectMatrix in file("grpc/pekko-e
.settings(
name := "tapir-pekko-grpc-examples",
libraryDependencies ++= Seq(
"org.apache.pekko" %% "pekko-discovery" % "1.1.1",
"org.apache.pekko" %% "pekko-discovery" % "1.1.2",
slf4j
),
fork := true
Expand All @@ -1016,8 +1019,8 @@ lazy val prometheusMetrics: ProjectMatrix = (projectMatrix in file("metrics/prom
.settings(
name := "tapir-prometheus-metrics",
libraryDependencies ++= Seq(
"io.prometheus" % "prometheus-metrics-core" % "1.3.1",
"io.prometheus" % "prometheus-metrics-exposition-formats" % "1.3.1",
"io.prometheus" % "prometheus-metrics-core" % "1.3.5",
"io.prometheus" % "prometheus-metrics-exposition-formats" % "1.3.5",
scalaTest.value % Test
)
)
Expand Down Expand Up @@ -1244,7 +1247,7 @@ lazy val pekkoGrpcServer: ProjectMatrix = (projectMatrix in file("server/pekko-g
.settings(
name := "tapir-pekko-grpc-server",
libraryDependencies ++= Seq(
"org.apache.pekko" %% "pekko-grpc-runtime" % "1.0.2"
"org.apache.pekko" %% "pekko-grpc-runtime" % "1.1.1"
)
)
.jvmPlatform(scalaVersions = scala2And3Versions, settings = commonJvmSettings)
Expand Down Expand Up @@ -1986,8 +1989,8 @@ lazy val openapiCodegenCore: ProjectMatrix = (projectMatrix in file("openapi-cod
"com.47deg" %% "scalacheck-toolbox-datetime" % "0.7.0" % Test,
scalaOrganization.value % "scala-reflect" % scalaVersion.value,
scalaOrganization.value % "scala-compiler" % scalaVersion.value % Test,
"com.beachape" %% "enumeratum" % "1.7.4" % Test,
"com.beachape" %% "enumeratum-circe" % "1.7.4" % Test,
"com.beachape" %% "enumeratum" % "1.7.5" % Test,
"com.beachape" %% "enumeratum-circe" % "1.7.5" % Test,
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-core" % "2.28.2" % Test,
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-macros" % "2.28.2" % Provided
)
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/scala/sttp/tapir/attribute.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package sttp.tapir

import sttp.tapir.macros.AttributeKeyMacros

// TODO: use AttributeKey & AttributeMap from sttp-shared in Tapir2

/** @param typeName
* The fully qualified name of `T`.
* @tparam T
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CreateDerivedEnumerationCodec[L, T](validator: Validator.Enumeration[T], s
.mapDecode(s =>
decode(s) match {
case Some(value) => DecodeResult.Value(value)
case None => DecodeResult.InvalidValue(List(ValidationError(validator, s)))
case None => DecodeResult.InvalidValue(List(ValidationError(v, s)))
}
)(encode)
.schema(schemaAnnotations.enrich(s))
Expand Down
10 changes: 10 additions & 0 deletions doc/adopters.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,13 @@ Thank you!
<a href="https://www.pitsdatarecovery.net"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/pits.svg" alt="pits" width="100"/></a>
<a href="https://www.hootsuite.com"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/hootsuite.png" alt="hootsuite" width="160"/></a>
</div>
<div style="display: flex; justify-content: space-between; align-items: center; height: 100px;">
<a href="https://www.ematiq.com/"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/ematiq.png" alt="ematiq" width="100"/></a>
<a href="https://www.fugo.ai/"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/fugo.png" alt="fugo" width="100"/></a>
<a href="https://budgetbakers.com/"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/budgetbakers.svg" alt="budgetbakers" width="100"/></a>
</div>
<div style="display: flex; justify-content: space-between; align-items: center; height: 100px;">
&nbsp;
<a href="https://flo.health"><img src="https://github.com/softwaremill/tapir/raw/master/doc/adopters/flo.svg" alt="flo" width="100"/></a>
&nbsp;
</div>
Loading

0 comments on commit e7c640e

Please sign in to comment.