Skip to content

Commit

Permalink
Fixed: Allow Unknown Language in Custom Format
Browse files Browse the repository at this point in the history
(cherry picked from commit 65323d5e872cb87b1f3d16c520aef373f4447915)
  • Loading branch information
markus101 authored and mynameisbogdan committed Aug 8, 2023
1 parent 9a567b9 commit caea810
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -10,7 +10,7 @@ public class LanguageSpecificationValidator : AbstractValidator<LanguageSpecific
{
public LanguageSpecificationValidator()
{
RuleFor(c => c.Value).NotEmpty();
RuleFor(c => c.Value).GreaterThanOrEqualTo(0);
RuleFor(c => c.Value).Custom((value, context) =>
{
if (!Language.All.Any(o => o.Id == value))
Expand Down

0 comments on commit caea810

Please sign in to comment.