model Job {
/// @zod.number.gte(7.25, { message: "Salary must be at least $7.25/h"})
salary Float
}
When I run the generator, I get the error:
[@zod generator error]: Could not match validator 'gte' with validatorPattern '.gte(7.25, { message: "Salary must be at least $7.25/h"})'. Please check for typos! [Error Location]: Model: 'Job', Field: 'salary'.
It works with an integer value, but how to set a float value to validate in this case?
Given a model like this:
When I run the generator, I get the error:
It works with an integer value, but how to set a float value to validate in this case?
Thanks in advance!