What feature do you want?
Add defaults inbetween schema objects.
So that in cases like this: You dont get the error "$.server is required", instead it will error on $.server.port is required.
z.object({
server: z.object({
port: z.coerce.number()
})
})
Which package/app is this targeted at (leave empty if unsure)
@neato/config
Goals
- Clearer error messages
Extra details
This should probably be an opt-in setting, this behaviour could be unexpected for library users.
What feature do you want?
Add defaults inbetween schema objects.
So that in cases like this: You dont get the error "$.server is required", instead it will error on
$.server.port is required.Which package/app is this targeted at (leave empty if unsure)
@neato/config
Goals
Extra details
This should probably be an opt-in setting, this behaviour could be unexpected for library users.