Skip to content

Commit

Permalink
Update validators to allow larger images.
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Jul 17, 2024
1 parent b396f29 commit b7b157f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7b157f

Please sign in to comment.