Comments (3)
I implemented a basic version of masking but unfortunately it only works for (non-lazy) object schemas currently. A use case like the one described in #16 by @christophemarois (linearizing a recursive schema) is still not possible so I'm leaving this open.
from zod.
I came here to request this feature, glad to see its being considered. I'm not really a fan of your .mask
API-- to me it just seems best to give us a version of .nonstrict()
that omits any unknown fields from the parsed output.
from zod.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from zod.
Related Issues (20)
- z.date({ coerce: 'iso' })
- z.instanceOf error with class with private constructor
- Property 'pick' does not exist on type 'ZodType<Output, ZodTypeDef, Input>'. HOT 1
- IP Validation + optional is behaving unexpectedly HOT 2
- Use arrays to create unions HOT 3
- Support custom discriminators in `z.discriminatedUnion`
- CI lint checks can be simplified
- [Feature Request] take regular expressions to support progressive improvement
- [BUG] Generic Function with Object Extend/Merge not treating optional properties as optional and expecting them anyways. HOT 1
- refinement chains unexpectedly violate type safety HOT 1
- Infer new schema from parsed output
- Using nullable() or nullish() alone HOT 2
- Interest in codemods for migrating from v3 to v4?
- Recursive types with an intermediate object HOT 2
- Support `enumDescriptions`
- z.union() ignores custom error message HOT 1
- Extending zod schema with branded type produces typescript error
- z.string().base64() validation matches non-base64 strings
- ipv6: case insensitive comparison
- String is hex
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zod.