Skip to content

Commit

Permalink
Add boundaries to activity in RO/TO schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 6, 2024
1 parent 5c4a19f commit 2e7ec69
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 @@ -421,7 +421,7 @@ export const roToSchema = z.object({
motivation: z.string().optional(),
ressources: z.string().optional(),
pertinence: z.string().optional(),
activity: z.number().optional().default(0),
activity: z.number().min(0).max(4).optional().default(0),
is_selected: z.boolean().optional().default(false),
justification: z.string().optional()
});
Expand Down

0 comments on commit 2e7ec69

Please sign in to comment.