Effect-TS / schema

Modeling the schema of data structures as first-class values

Home Page:https://effect.website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BigintFromString schema

vecerek opened this issue · comments

🚀 Feature request

Sometimes resource identifiers are very large integers represented as strings, e.g. through query params, and sometimes also via the response body, but stored as integers in the database. This schema will help parse such inputs.

Current Behavior

Missing feature

Desired Behavior

Schema.BigintFromString

Suggested Solution

Who does this impact? Who is this for?

Users trying to parse BigInts from strings from query params, or response bodies in a form that then can be directly stored in the database without further manual parsing/transformation.

Describe alternatives you've considered

Additional context

Your environment

Software Version(s)
@effect/schema
TypeScript