We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using zod could help to validate objects before dealing with them. This should be implemented for all packages where required
The text was updated successfully, but these errors were encountered:
Can you tell me what examples there are?
Sorry, something went wrong.
It would help to validate variables. So instead of
if(jwk.exp && typeof jwk.exp === number) { }
you could go with
const schema = z.number(); schema.parse(jwk.exp)
While I think ZOD is nice, I do not see so many values that we need to type check for validation (Timo brought the topic up in one of the issues)
No branches or pull requests
Using zod could help to validate objects before dealing with them. This should be implemented for all packages where required
The text was updated successfully, but these errors were encountered: