python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Enum fluent validation to accept only string
Below is my Enum
public enum IdentifierType
{
Customer = 1,
Manager = 2,
Director = 3
}
Using fluent validation in .Net core, is it possible to do validation where passing 1/"1"...
Dark Knight
Votes: 0
Answers: 2
FluentValidator isEmpty Not validate for first item
I have a fluent validator:
RuleFor(x => x.TypeTest)
.NotEmpty()
.WithMessage(x => string.Format(MessagesValidation.ValeurRequise, nameof(x.TypeTest)))
TypeTest is enum type...
Sacamoto
Votes: 0
Answers: 2
Fluent validator: How to validate a string to be not empty when another field is specific value from enum
I need to add validation for Message only when Type is Other
I tried to use Must, and validation works when type is Other, but when type is First I receive "The specified condition was not met fo...
Alex
Votes: 0
Answers: 1
Mudblazor Select with multiselect and Fluentvalidation For-Expression
I am binding to a select field in multiselect mode and I ran into a problem with the "For" property of the select field".
Here is a code snippet
When using a select field an options typ...
Nurfed
Votes: 0
Answers: 1