From 420e3448d5c3cea193e15c8dba34dc4f1668c346 Mon Sep 17 00:00:00 2001 From: "Khan Mohammad R." Date: Mon, 22 Jan 2024 18:57:41 +0100 Subject: [PATCH] Phone number validation added to singleton --- src/Altinn.Notifications/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Altinn.Notifications/Program.cs b/src/Altinn.Notifications/Program.cs index ba86ccee3..4427e3d88 100644 --- a/src/Altinn.Notifications/Program.cs +++ b/src/Altinn.Notifications/Program.cs @@ -247,6 +247,7 @@ void AddInputModelValidators(IServiceCollection services) { ValidatorOptions.Global.LanguageManager.Enabled = false; services.AddSingleton, EmailNotificationOrderRequestValidator>(); + services.AddSingleton, SmsNotificationOrderRequestValidator>(); } void IncludeXmlComments(SwaggerGenOptions swaggerGenOptions)