python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Zod: create a schema using an existing type
I have an endpoint that should get a parameter method which should comply with the Axios type Method.
How can I create a schema with Zod that validates that the value is using the type Schema?
import ...

Dotan
Votes: 0
Answers: 3
FormData everything converting to string even arrays
const formData = new FormData()
formData.append('choices', [1, 2, 3])
choices converted to
'1,2,3'
And this is sent to node js which fails zod valdation because it is expecting array. this also same...
Eivydas Vickus
Votes: 0
Answers: 2
How to generate error messages with Zod in different Languages
I want to generate validation messages in different languages.
I wanted to create my own middleware that adds a lang attribute to the request object. And after setting lang, I will validate my request...

Çağlar Yıldız
Votes: 0
Answers: 0
React-hook-form validation - IsValid prop keeps returning false
I have a fairly complex form using React-Hook-Form. I am unable to get the validation to work correctly.
The zod library validation schema is as such:
// For the form to be valid,
// Atleast 2 goal f...
Kayote
Votes: 0
Answers: 0