zeroframework/Services/Identity/ZeroFramework.IdentityServer.API/Validations/Tenants/TenantClaimModelValidator.cs

14 lines
433 B
C#
Raw Normal View History

2023-12-05 09:22:48 +00:00
using FluentValidation;
using ZeroFramework.IdentityServer.API.Models.Tenants;
namespace ZeroFramework.IdentityServer.API.Validations.Tenants
{
public class TenantClaimModelValidator : AbstractValidator<TenantClaimModel>
{
public TenantClaimModelValidator()
{
RuleFor(e => e.ClaimType).NotNull().NotEmpty().Length(5, 15);
RuleFor(e => e.ClaimValue).Length(5, 15);
}
}
}