Releases: softwaremill/tapir
Releases · softwaremill/tapir
v0.18.0-M5
What’s Changed
- Change the shape of interceptors, introduce EndpointHandler and RequestHandler (#1165) @adamw
- Update refined to 0.9.23 (#1134) @scala-steward
- Issue/1081 (#1100) @kubinio123
- Update client3:akka-http-backend, ... to 3.3.0-RC2 (#1163) @scala-steward
- ZTapir as a trait (#1162) @adamw
- Fix some JSON doc (#1155) @longshorej
- Update zio, zio-streams to 1.0.6 (#1160) @scala-steward
- Enable finatra server interpreter for Scala 2.13 (#1152) @adamw
- Update akka-stream to 2.6.14 (#1146) @scala-steward
- Update model:core to 1.4.1 (#1144) @scala-steward
v0.18.0-M4
What’s Changed
- Run JS tests in one go (#1142) @adamw
- Update http4s-blaze-server, http4s-circe, ... to 0.21.22 (#1143) @scala-steward
- Add newtype support for scala.js (#1135) @mprevel
- Expanded doc for Scala.JS sttp client (#1141) @mcallisto
- Update scala-java-time, ... to 2.2.1 (#1137) @scala-steward
- Update jsoniter-scala-core, ... to 2.7.1 (#1136) @scala-steward
- Correct typo (#1133) @mcallisto
v0.18.0-M2
What’s Changed
- Helper methods to validate options/iterables (#1131) @adamw
- Update client3:akka-http-backend, ... to 3.2.3 (#1130) @scala-steward
- Enum as component (#1121) @kubinio123
- Update upickle to 1.3.11 (#1128) @scala-steward
- Update discipline-scalatest to 2.1.3 (#1127) @scala-steward
- Nicer partial endpoint types (#1126) @adamw
- Update scalatest to 3.2.7 (#1125) @scala-steward
- Update sbt-scalajs, scalajs-compiler, ... to 1.5.1 (#1123) @scala-steward
- Update swagger-ui to 3.46.0 (#1124) @scala-steward
v0.18.0-M1
Summary
The main features in this release:
- content negotiation support on server & client side
- data structure is reflected only in schemas, not in validators. Validators are much simpler now
- server interpreters are rewritten, and support two types of interceptors (request & endpoint interceptors). Some functionalities (logging, decode failure handling) are implemented as interceptors
- exceptions are handled and result in the 500 status code
Breaking changes
DecodeFailureHandler
- minor changes in method signatures, the default one is nowDefaultDecodeFailureHandler.handler
LogRequestHandling
->ServerLog
- server options have been significantly refactored. To create custom options, use e.g.
AkkaServerOptions.customInterceptors
- there's no single
streamBody
method, instead there arestreamBinaryBody
,streamTextBody
,streamListBody
,streamIterableBody
SchemaType
s are not objects, but classes. If you specified the schema type manually, instead of e.g.SchemaType.SString
you'll have to useSchemaType.SString()
- rewritten
SchemaType.[SProduct|SCoproduct|SOpenProduct]
Codec
is no longer aMapping
Validator.enum
->Validator.derivedEnum
- akka server interpreter: removal of
.toDirective
- play server interpreter:
toRoute
->toRoutes
- deprecated
statusMapping
in favor ofoneOfMapping
What’s Changed
- Rename statusMapping to oneOfMapping, docs (#1120) @adamw
- Implement request interceptors (#1118) @adamw
- Interceptors content negotiation (#1078) @kubinio123
- Add exception interceptors (#1109) @adamw
- [Minor] Add convenience method for empty outputs (#1106) @Qthunder
- feature: implement http4s client interpreter (#1080) @MichalPawlicki
- Move validation logic to schemas. Only schemas have structure, not validators (#1105) @adamw
- Yaml test cleanup (#1101) @kubinio123
- Implements #1065: Interceptors (#1089) @adamw
- Update derevo integration; (#1086) @FunFunFine
Dependency updates
- Update refined to 0.9.22 (#1114) @scala-steward
- Update cats-core, cats-laws to 2.5.0 (#1115) @scala-steward
- Update cats-effect to 2.4.1 (#1116) @scala-steward
- Update zio-interop-cats to 2.4.0.0 (#1112) @scala-steward
- Update mdoc_2.12, sbt-mdoc to 2.2.19 (#1113) @scala-steward
- Update http4s-blaze-server, http4s-circe, ... to 0.21.21 (#1110) @scala-steward
- Update cats-effect to 2.4.0 (#1095) @scala-steward
- Update jsoniter-scala-core, ... to 2.7.0 (#1108) @scala-steward
- Update upickle to 1.3.9 (#1103) @scala-steward
- Update client3:akka-http-backend, ... to 3.2.0 (#1102) @scala-steward
- Update scala-logging to 3.9.3 (#1098) @scala-steward
- Update upickle to 1.3.8 (#1094) @scala-steward
- Update sbt-twirl to 1.5.1 (#1093) @scala-steward
- Update derevo-core to 0.12.2 (#1092) @scala-steward
- Update tagging to 2.3.0 (#1090) @scala-steward
- Update play-ahc-ws-standalone to 2.1.3 (#1091) @scala-steward
- Update upickle to 1.3.7 (#1088) @scala-steward
- Update client3:akka-http-backend, ... to 3.1.9 (#1087) @scala-steward
- Update upickle to 1.3.4 (#1085) @scala-steward
v0.17.19
What’s Changed
- Use correct validators when generating schema. Simplify schema generation. (#1084) @kubinio123
v0.17.18
What’s Changed
- Docs for SSE (#1083) @wojciechUrbanski
- Update vertx-web to 4.0.3 (#1077) @scala-steward
- Update swagger-ui to 3.45.0 (#1075) @scala-steward
- Support SSE for Akka HTTP and http4s (#1079) @wojciechUrbanski
v0.17.16
What’s Changed
- Add Transfer-Encoding header while streaming data and using HTTP4s (#1073) @wojciechUrbanski
- Update zio, zio-streams to 1.0.5 (#1071) @scala-steward
- Update upickle to 1.3.0 (#1068) @scala-steward
v0.17.15
What’s Changed
- Fix requestBody decoder for sbt-openapi-codegen (#1063) @mhertogs
- fix(server): URL-decode captured path segments (#1062) @MichalPawlicki
- Update scalatest to 3.2.6 (#1067) @scala-steward
- Add schema for uuid (#1060) @matwojcik
- fixed Play JSON error message when input is not a valid JSON document (#1061) @markarasev
- Schema not found - improvements (#1059) @majk-p
v0.17.14
What’s Changed
- Update client3:akka-http-backend, ... to 3.1.7 (#1057) @scala-steward
- Update json4s-core, json4s-jackson to 3.6.11 (#1055) @scala-steward
- Update http4s-blaze-server, http4s-circe, ... to 0.21.20 (#1056) @scala-steward
- Fix WebSocketBodyOutput's setters and comments (#1054) @mkobzik
- Add contextPath capability to RedocHttp4s handler (#1042) @vbouzon
- WebSocket client properly handle fragmented frames (#1034) @dkarwacki
- Update tethys-core, tethys-derivation, ... to 0.23.0 (#1052) @scala-steward
- Update swagger-ui to 3.44.0 (#1049) @scala-steward
- Update client3:akka-http-backend, ... to 3.1.6 (#1045) @scala-steward
v0.17.13
What’s Changed
- Add instances of ModifyFunctor for cats.data collections (#1044) @matwojcik
- Update scalatest to 3.2.5 (#1031) @scala-steward
- Fix streaming from vertx streams (#1028) @danilbykov
- Update cats-effect to 2.3.3 (#1025) @scala-steward
- Update mdoc_2.12, sbt-mdoc to 2.2.18 (#1024) @scala-steward
- Add InvariantSemigroupal instances for Endpoint(Input|IO|Output) (#1023) @nigredo-tori
- Update catbird-effect, catbird-finagle to 21.2.0 (#1039) @scala-steward
- Update akka-http to 10.2.4 (#1038) @scala-steward
- Update client3:akka-http-backend, ... to 3.1.5 (#1037) @scala-steward
- Update akka-stream to 2.6.13 (#1036) @scala-steward
- Update shared:akka, shared:core, shared:fs2, ... to 1.1.1 (#1035) @scala-steward
- Update scala-java-time, ... to 2.2.0 (#1033) @scala-steward
- Update client3:akka-http-backend, ... to 3.1.3 (#1030) @scala-steward
- Update discipline-scalatest to 2.1.2 (#1029) @scala-steward
- Update refined to 0.9.21 (#1027) @scala-steward
- Update scalatest to 3.2.4 (#1026) @scala-steward