You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
instead. Furthermore, replace all uses of `sttp.capabilities.pekko.PekkoStreams` in the following code snippets with `sttp.capabilities.akka.AkkaStreams`.
Then, `import sttp.tapir.codec.newtype.*`, or extend the `sttp.tapir.codec.newtype.TapirCodecNewType` trait to bring the implicit values into scope.
@@ -169,7 +169,7 @@ If you use [monix newtypes](https://github.com/monix/newtypes), the `tapir-monix
169
169
schemas for types which extend `NewtypeWrapped` and `NewsubtypeWrapped` annotations as long as a codec and schema for its underlying value already exists:
Then, `import sttp.tapir.codec.monix.newtype.*`, or extend the `sttp.tapir.codec.monix.newtype.TapirCodecMonixNewType` trait to bring the implicit values into scope.
@@ -180,7 +180,7 @@ If you use [ZIO Prelude Newtypes](https://zio.github.io/zio-prelude/docs/newtype
180
180
schemas for types defined using `Newtype` and `Subtype` as long as a codec and a schema for the underlying type already exists:
Next, import the package (or extend the `TapirJsonJsoniter` trait, see [MyTapir](../other/mytapir.md) and add `TapirJsonJsoniter` not `TapirCirceJson`):
@@ -226,7 +226,7 @@ Jsoniter Scala requires `JsonValueCodec` implicit value in scope for each type y
226
226
To use [json4s](https://github.com/json4s/json4s) add the following dependencies to your project:
Copy file name to clipboardExpand all lines: generated-doc/out/includes/examples_list.md
+6
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,12 @@
33
33
*[Error reporting provided by Iron type refinements](https://github.com/softwaremill/tapir/tree/master//examples/src/main/scala/sttp/tapir/examples/errors/IronRefinementErrorsNettyServer.scala) <spanclass="example-tag example-json">circe</span> <spanclass="example-tag example-effects">cats-effect</span> <spanclass="example-tag example-server">Netty</span>
34
34
*[Extending a base secured endpoint with error variants, using union types](https://github.com/softwaremill/tapir/tree/master//examples/src/main/scala/sttp/tapir/examples/errors/ErrorUnionTypesHttp4sServer.scala) <spanclass="example-tag example-json">circe</span> <spanclass="example-tag example-effects">cats-effect</span> <spanclass="example-tag example-server">http4s</span>
35
35
36
+
## JSON
37
+
38
+
*[Return a JSON body which optionally serializes as `null`](https://github.com/softwaremill/tapir/tree/master//examples/src/main/scala/sttp/tapir/examples/json/circeNullBody.scala) <spanclass="example-tag example-json">circe</span> <spanclass="example-tag example-effects">Direct</span> <spanclass="example-tag example-server">Netty</span>
39
+
*[Return a JSON response with Circe and auto-dervied codecs](https://github.com/softwaremill/tapir/tree/master//examples/src/main/scala/sttp/tapir/examples/json/circeAutoDerivationNettySyncServer.scala) <spanclass="example-tag example-json">circe</span> <spanclass="example-tag example-effects">Direct</span> <spanclass="example-tag example-server">Netty</span>
40
+
*[Return a JSON response with Jsoniter](https://github.com/softwaremill/tapir/tree/master//examples/src/main/scala/sttp/tapir/examples/json/jsoniterNettySyncServer.scala) <spanclass="example-tag example-json">jsoniter</span> <spanclass="example-tag example-effects">Direct</span> <spanclass="example-tag example-server">Netty</span>
41
+
36
42
## Logging
37
43
38
44
*[Logging using a correlation id](https://github.com/softwaremill/tapir/tree/master//examples/src/main/scala/sttp/tapir/examples/logging/ZioLoggingWithCorrelationIdNettyServer.scala) <spanclass="example-tag example-effects">ZIO</span> <spanclass="example-tag example-server">Netty</span>
0 commit comments