Skip to content

Commit

Permalink
fix: optional fields in compliance assessment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Apr 25, 2024
1 parent 6f00ecd commit de25f20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/lib/utils/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ export const ComplianceAssessmentSchema = baseNamedObject({
framework: z.string(),
eta: z.string().optional().nullable(),
due_date: z.string().optional().nullable(),
authors: z.array(z.string().optional()),
reviewers: z.array(z.string().optional())
authors: z.array(z.string()).optional(),
reviewers: z.array(z.string()).optional()
});

export const EvidenceSchema = baseNamedObject({
Expand Down

0 comments on commit de25f20

Please sign in to comment.