Skip to content

Commit

Permalink
Make stakeholders optional in attack path schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 16, 2024
1 parent 39e6fde commit d582808
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 @@ -448,7 +448,7 @@ export const StakeholderSchema = z.object({
export const AttackPathSchema = z.object({
ebios_rm_study: z.string(),
ro_to_couple: z.string().uuid(),
stakeholders: z.string().uuid().array(),
stakeholders: z.string().uuid().optional().array().optional(),
description: z.string(),
is_selected: z.boolean().optional(),
justification: z.string().optional()
Expand Down

0 comments on commit d582808

Please sign in to comment.