diff --git a/packages/common/src/initiative-templates/_internal/InitiativeTemplateSchema.ts b/packages/common/src/initiative-templates/_internal/InitiativeTemplateSchema.ts index d9647da24e3..1df5c372077 100644 --- a/packages/common/src/initiative-templates/_internal/InitiativeTemplateSchema.ts +++ b/packages/common/src/initiative-templates/_internal/InitiativeTemplateSchema.ts @@ -15,7 +15,9 @@ export const InitiativeTemplateSchema: IConfigurationSchema = { previewUrl: { type: "string", if: { minLength: 1 }, - then: { format: "uri" }, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + then: { format: "url" }, }, recommendedTemplates: { type: "array", @@ -24,5 +26,4 @@ export const InitiativeTemplateSchema: IConfigurationSchema = { }, }, }, - // we have to do this to allow the format: url to pass through -} as IConfigurationSchema; +}; diff --git a/packages/common/src/templates/_internal/TemplateSchema.ts b/packages/common/src/templates/_internal/TemplateSchema.ts index dbafb0fe22a..e89d8b7ce06 100644 --- a/packages/common/src/templates/_internal/TemplateSchema.ts +++ b/packages/common/src/templates/_internal/TemplateSchema.ts @@ -12,7 +12,9 @@ export const TemplateSchema: IConfigurationSchema = { previewUrl: { type: "string", if: { minLength: 1 }, - then: { format: "uri" }, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + then: { format: "url" }, }, }, -} as IConfigurationSchema; +};