Require limit prob to be >= .1% and <= 99.9%

This commit is contained in:
James Grugett 2022-07-09 16:19:44 -05:00
parent 4596a1ef26
commit 376feca7dc

View File

@ -30,7 +30,7 @@ const bodySchema = z.object({
const binarySchema = z.object({
outcome: z.enum(['YES', 'NO']),
limitProb: z.number().gte(0).lte(1).optional(),
limitProb: z.number().gte(0.001).lte(0.999).optional(),
})
const freeResponseSchema = z.object({