revert schema change

This commit is contained in:
Bilal Godil 2025-07-25 09:59:37 -07:00
parent 31bc90f381
commit 49554ca03d
2 changed files with 2 additions and 2 deletions

View File

@ -497,7 +497,7 @@ it("verifies email_theme update persists", async ({ expect }) => {
expect(response.body.config.email_theme).toBe("a0172b5d-cff0-463b-83bb-85124697373a"); // default-dark
});
it.only("gives an error when updating email_theme with an invalid value", async ({ expect }) => {
it("gives an error when updating email_theme with an invalid value", async ({ expect }) => {
await Project.createAndSwitch();
const response = await niceBackendFetch("/api/v1/internal/projects/current", {

View File

@ -364,7 +364,7 @@ export const emailPasswordSchema = passwordSchema.meta({ openapiField: { descrip
// Project domain config
export const handlerPathSchema = yupString().test('is-handler-path', 'Handler path must start with /', (value) => value?.startsWith('/')).meta({ openapiField: { description: 'Handler path. If you did not setup a custom handler path, it should be "/handler" by default. It needs to start with /', exampleValue: '/handler' } });
// Project email theme config
export const emailThemeSchema = yupString().uuid().meta({ openapiField: { description: 'Email theme id for the project. Determines the visual style of emails sent by the project.' } });
export const emailThemeSchema = yupString().meta({ openapiField: { description: 'Email theme id for the project. Determines the visual style of emails sent by the project.' } });
export const emailThemeListSchema = yupRecord(
yupString().uuid(),
yupObject({