Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Dec 5, 2024
1 parent cdae724 commit 050c587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions backend/ebios_rm/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class FearedEventViewSet(BaseModelViewSet):
"ebios_rm_study",
]


class RoToViewSet(BaseModelViewSet):
model = RoTo

Expand Down
6 changes: 4 additions & 2 deletions frontend/src/lib/utils/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ export const vulnerabilitySchema = z.object({
filtering_labels: z.string().optional().array().optional()
});

export const ebiosRMSchema = baseNamedObject({
export const ebiosRMSchema = z.object({
...NameDescriptionMixin,
version: z.string().optional().default('0.1'),
ref_id: z.string().default(''),
risk_matrix: z.string().optional(),
Expand All @@ -401,7 +402,8 @@ export const ebiosRMSchema = baseNamedObject({
folder: z.string()
});

export const fearedEventsSchema = baseNamedObject({
export const fearedEventsSchema = z.object({
...NameDescriptionMixin,
ref_id: z.string().optional(),
gravity: z.number().optional(),
is_selected: z.boolean().optional(),
Expand Down

0 comments on commit 050c587

Please sign in to comment.