Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request - ability to pass z.object{...}) as .server, .client, .runtimeEnv of createEnv method #256

Closed
noahhai opened this issue Jul 25, 2024 · 2 comments

Comments

@noahhai
Copy link

noahhai commented Jul 25, 2024

Allowing us to pass z.object instead of plain javascript object as each of these fields would allow us to call refine on the whole (e.g. server) object, and do validation that includes interaction between different environment variables/fields.

Willing to attempt a PR.

@chungweileong94
Copy link
Contributor

Yes, this is actually the first step we want to achieve towards validator agnostics. #6

@juliusmarminge
Copy link
Member

Duplicate #169

@juliusmarminge juliusmarminge closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants