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 |
Now available since https://github.com/Effect-TS/schema/releases/tag/v0.30.4