Skip to content

Commit

Permalink
Remove required contraint from ref_id
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 6, 2024
1 parent 475a7b0 commit 0120a29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
/>
<TextField
{form}
required
field="ref_id"
label={m.refId()}
cacheLock={cacheLocks['ref_id']}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/utils/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export const vulnerabilitySchema = z.object({
export const ebiosRMSchema = z.object({
...NameDescriptionMixin,
version: z.string().optional().default('0.1'),
ref_id: z.string().default(''),
ref_id: z.string().optional().default(''),
risk_matrix: z.string().optional(),
authors: z.array(z.string().optional()).optional(),
reviewers: z.array(z.string().optional()).optional(),
Expand Down

0 comments on commit 0120a29

Please sign in to comment.