Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit e22beec

Browse files
authored
Fix render Schema in zio-full-stack-webapp.md (#57)
ZIO full stack web-app minor fixes
1 parent 0274e10 commit e22beec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

_posts/2024-10-15-zio-full-stack-webapp.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Thanks to the power of SBT and multi-module support, it easy to compile and pack
170170

171171
In VS code you can see the modules view:
172172

173-
```xml
173+
174174
<table>
175175
<tr>
176176
<td>
@@ -201,7 +201,7 @@ In VS code you can see the modules view:
201201
</td>
202202
</tr>
203203
</table>
204-
```
204+
205205

206206
Sometimes we need to [generate some static files](https://github.com/cheleb/zio-laminar-demo/blob/master/build.sbt#L63), like the index.html of the server module. This is done with SBT only when the server module is build.
207207

@@ -400,7 +400,7 @@ In this example, the PersonService will check if the person is older than 18 bef
400400

401401
> **Task** is a type alias for a ZIO that can fail with a Throwable:
402402
>
403-
> `type **Task**[A] = ZIO[Any, **Throwable**, A]`
403+
> type **Task**[A] = ZIO[Any, **Throwable**, A]
404404
405405

406406
```scala
@@ -609,7 +609,7 @@ Everything is described as ZIO effects. `URIO[PersonService, PersonController]`
609609

610610
> **URIO** is a type alias for a ZIO that cannot fail:
611611
>
612-
> `type URIO[R, A] = ZIO[R, Nothing, A]`
612+
> type **URIO**[R, A] = ZIO[R, **Nothing**, A]
613613
614614
**zServerLogic** is part of the Tapir ZIO support, and bridges a ZIO in the Rest API. Itis a combinator that will transform a ZIO effect into a server logic, it will handle the error and the success case.
615615

@@ -714,7 +714,7 @@ def createEndpoint[I, O](payload: I): RIO[BackendClient, O]
714714

715715
> Note: **RIO** is just a type alias where error are Throwable:
716716
>
717-
> `type RIO[R, A]= ZIO[R, Throwable, A]`
717+
> type **RIO**[R, A]= ZIO[R, **Throwable**, A]
718718
719719
This effect needs a BackendClient to run - look at `ZIO.service[BackendClient]`.
720720

0 commit comments

Comments
 (0)