Skip to content

Commit

Permalink
Require stakeholder category field
Browse files Browse the repository at this point in the history
The field is not optional at the data model level, making it optional in
the frontend is senseless.
  • Loading branch information
nas-tabchiche committed Dec 31, 2024
1 parent 8cccab1 commit b7cc82a
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 @@ -432,7 +432,7 @@ export const roToSchema = z.object({
export const StakeholderSchema = z.object({
ebios_rm_study: z.string(),
applied_controls: z.string().uuid().optional().array().optional(),
category: z.string().optional(),
category: z.string(),
entity: z.string().optional(),
current_dependency: z.number().min(0).max(4).default(0).optional(),
current_penetration: z.number().min(0).max(4).default(0).optional(),
Expand Down

0 comments on commit b7cc82a

Please sign in to comment.