Skip to content

Commit

Permalink
some comments resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Alireza Eiji committed Jul 28, 2024
1 parent 6b770b5 commit 93a1394
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ public SearchRepositoryQueryValidator()
RuleFor(x => x.Query)
.NotEmpty()
.WithErrorCode(ValidationErrorCodes.EmptySearchQueryErrorCode)
.WithMessage("the search query is null or empty!");
.WithMessage("The search query is null or empty!");

RuleFor(x => x.Page)
.GreaterThanOrEqualTo(1)
.WithErrorCode(ValidationErrorCodes.InvalidPageSizeErrorCode)
.WithMessage("the page size must be greater than or equal to 1");
.WithMessage("The page size must be greater than or equal to 1");

RuleFor(x => x.Limit)
.GreaterThan(0)
.WithErrorCode(ValidationErrorCodes.InvalidLimitErrorCode)
.WithMessage("the limit must be greater than 0");
.WithMessage("The limit must be greater than 0");
}
}

0 comments on commit 93a1394

Please sign in to comment.