effect
effect copied to clipboard
Build production-ready applications in TypeScript
## 🚀 Feature request ### Current Behavior At the moment I did define the following schema to handle empty strings as `Option`. ```ts const optionFromEmptyString = pipe( Schema.string, Schema.transform( Schema.optionFromSelf(Schema.string),...
I found myself needing to extract the first element of an array from api request that matched a given schema and I suspect that something similar might be useful as...
Instead of having to use S.union with S.attachPropertySignature directly to create tagged objects, a simpler solution might be to add a S.attachSignatures helper that fn that abstracts this behavior. The...
There are some useful utils in `test/util.ts` code that'd be helpful for testing bespoke schemas in userland. Can we ship that as a public module?
## 🐛 Bug report ### Current Behavior The current behaviour of `withDefault` works on a single level of `S.optional` as shown in the docs example: ```javascript const schema1 = S.struct({...
## 🚀 Feature request ### Current Behavior Currently, you have to use a [namespace import](https://github.com/effect-ts/schema#getting-started) to use Schema. ### Desired Behavior If I were to use this in a larger...
### What is the type of issue? Documentation is incorrect ### What is the issue? I just went through the whole documentation again as I discovered many changes since the...
### What is the problem this feature would solve? It's pretty common that you will need to use multiple parser fns(parse, encode, decode) for a given schema. It would be...
# Summary The user is requesting the addition of a `Schema.Error` function that creates `TaggedError` instances. The assistant agrees with the suggestion. # Discord thread https://discord.com/channels/795981131316985866/1166537649360744489
### What is the problem this feature would solve? ```ts const A = S.struct({ b: S.string, c: S.struct({ d: S.boolean }) }); const B = A.pipe(S.get("b")); // S.Schema const D...