Installing effect schema

@effect/schema is a library in the effect ecosystem that deals with data parsing and validation.

It allows to define schemas that are used to decode and encode data.

Let's install it then:

pnpm add @effect/schema

Always make sure to keep the version of @effect/schema in line with the version of effect.

If you get a peer dependency error make sure to install the latest version of effect.

WARN  Issues with peer dependencies found
.
└─┬ @effect/schema 0.68.21
  └── ✕ unmet peer effect@^3.5.1: found 3.4.7
pnpm install effect@latest

@effect/schema will be integrated inside effect core in the upcoming future.

When @effect/schema becomes integrated inside effect matching dependencies will not be an issue anymore.

Until then you need to manually make sure the two packages versions are aligned.