Skip to content

Commit

Permalink
Phone number validation added to singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
khanrn committed Jan 22, 2024
1 parent a8caa25 commit 420e344
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Altinn.Notifications/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ void AddInputModelValidators(IServiceCollection services)
{
ValidatorOptions.Global.LanguageManager.Enabled = false;
services.AddSingleton<IValidator<EmailNotificationOrderRequestExt>, EmailNotificationOrderRequestValidator>();
services.AddSingleton<IValidator<SmsNotificationOrderRequestExt>, SmsNotificationOrderRequestValidator>();
}

void IncludeXmlComments(SwaggerGenOptions swaggerGenOptions)
Expand Down

0 comments on commit 420e344

Please sign in to comment.