Skip to content

Commit

Permalink
Merge pull request #390 from BinaryStudioAcademy/task/OV-389-fix-schema
Browse files Browse the repository at this point in the history
OV-389: * schema
  • Loading branch information
nikita-remeslov authored Sep 23, 2024
2 parents 49221ae + c735b52 commit 61edab4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type SceneValidation = {
id: z.ZodString;
duration: z.ZodNumber;
avatar: typeof avatarSchema;
background: typeof backgroundSchema;
background: z.ZodOptional<typeof backgroundSchema>;
};

type ScriptValidation = {
Expand Down Expand Up @@ -73,7 +73,7 @@ const sceneSchema = z.object<SceneValidation>({
message: AvatarVideoValidationMessage.ID_REQUIRED,
}),
avatar: avatarSchema,
background: backgroundSchema,
background: backgroundSchema.optional(),
});

const scriptSchema = z
Expand Down

0 comments on commit 61edab4

Please sign in to comment.