Files
Ping/backend/Hosts/Ping.Api/Validators/Servers/CreateServerRequestValidator.cs
T
Admin 0623875dfa Add Ping backend
.NET 10 solution for Ping, a Discord style chat app: Domain, Application
and Infrastructure projects plus the Api host. SignalR for chat and
presence, LiveKit for call tokens, EF Core on Postgres, S3 compatible
storage for attachments, and OIDC auth shared with the Musify Zitadel
instance. Includes the Compose stack for local development.
2026-09-21 19:32:55 +02:00

15 lines
343 B
C#

using FluentValidation;
using Ping.Api.DataTransferObjects.Servers;
namespace Ping.Api.Validators.Servers;
public sealed class CreateServerRequestValidator : AbstractValidator<CreateServerRequest>
{
public CreateServerRequestValidator()
{
RuleFor(x => x.Name)
.NotEmpty()
.MaximumLength(100);
}
}