From b7b157fd9a1735236475d907034648206420b1a6 Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Wed, 17 Jul 2024 13:57:07 +1000 Subject: [PATCH] Update validators to allow larger images. --- .../Validators/CreativeValidators.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BlazorDiffusion.ServiceInterface/Validators/CreativeValidators.cs b/BlazorDiffusion.ServiceInterface/Validators/CreativeValidators.cs index e5ae603..58869cc 100644 --- a/BlazorDiffusion.ServiceInterface/Validators/CreativeValidators.cs +++ b/BlazorDiffusion.ServiceInterface/Validators/CreativeValidators.cs @@ -9,11 +9,11 @@ public CreateCreativeValidator() { RuleFor(x => x.UserPrompt).NotEmpty(); RuleFor(x => x.Height) - .Must(x => x is >= 256 and <= 1024) + .Must(x => x is >= 256 and <= 1536) .When(x => x.Height != null) .WithMessage("Height must be between 256 and 1024."); RuleFor(x => x.Width) - .Must(x => x is >= 256 and <= 1024) + .Must(x => x is >= 256 and <= 1536) .When(x => x.Width != null) .WithMessage("Width must be between 256 and 1024."); RuleFor(x => x.Images)