diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDtoValidator.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDtoValidator.cs index fb0ed6b..58c2219 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDtoValidator.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDtoValidator.cs @@ -8,9 +8,9 @@ public class PartCreateDtoValidator : AbstractValidator public PartCreateDtoValidator() { RuleFor(x => x.Code).MaximumLength(64).NotEmpty(); - RuleFor(x => x.Name).MaximumLength(64).NotNull(); - RuleFor(x => x.Desc1).MaximumLength(1024).NotNull(); - RuleFor(x => x.Desc2).MaximumLength(1024); + RuleFor(x => x.Name).MaximumLength(1024); + RuleFor(x => x.Desc1).MaximumLength(64); + RuleFor(x => x.Desc2).MaximumLength(64); RuleFor(x => x.Status).MaximumLength(64).NotNull(); RuleFor(x => x.IsMakePart).NotNull(); RuleFor(x => x.IsBuyPart).NotNull();