Skip to content

Commit

Permalink
Merge pull request #170 from intuitem/fix/asset-schema
Browse files Browse the repository at this point in the history
Fix asset schema and set default value for type
  • Loading branch information
Mohamed-Hacene authored Mar 26, 2024
2 parents 4479999 + c185947 commit 9f43f3b
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 @@ -127,9 +127,9 @@ export const ReferenceControlSchema = baseNamedObject({

export const AssetSchema = baseNamedObject({
business_value: z.string().optional(),
type: z.string(),
type: z.string().default('PR'),
folder: z.string(),
parent_assets: z.array(z.string()).optional()
parent_assets: z.string().optional().array().optional()
});

export const RequirementAssessmentSchema = z.object({
Expand Down

0 comments on commit 9f43f3b

Please sign in to comment.