Skip to content

Commit

Permalink
fix: observation field in requirement assessment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Apr 19, 2024
1 parent ebca222 commit 9f32c05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/lib/utils/schemas.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { observation } from '$paraglide/messages';
import { z, type AnyZodObject } from 'zod';

const toArrayPreprocessor = (value: unknown) => {
Expand Down Expand Up @@ -156,7 +157,8 @@ export const RequirementAssessmentSchema = z.object({
requirement: z.string(),
evidences: z.string().uuid().optional().array(),
compliance_assessment: z.string(),
applied_controls: z.string().uuid().optional().array()
applied_controls: z.string().uuid().optional().array(),
observation: z.string().optional().nullable()
});

export const UserEditSchema = z.object({
Expand Down

0 comments on commit 9f32c05

Please sign in to comment.