Skip to content

Commit

Permalink
Accept floats up to 6-digit of precision in the NumberField for cost
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed Sep 13, 2024
1 parent b350c0e commit a0175ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/utils/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const AppliedControlSchema = baseNamedObject({
expiry_date: z.string().optional().nullable(),
link: z.string().url().optional().or(z.literal('')),
effort: z.string().optional().nullable(),
cost: z.number().optional().nullable(),
cost: z.number().multipleOf(0.000001).optional().nullable(),
folder: z.string(),
reference_control: z.string().optional().nullable(),
owner: z.string().uuid().optional().array().optional()
Expand Down

0 comments on commit a0175ff

Please sign in to comment.