Description
The CreateHero endpoint should reject requests where the hero's Name is 30 characters or fewer. Currently CreateHeroRequestValidator only enforces .NotEmpty() on Name.
Acceptance Criteria
Relevant code
src/WebApi/Features/Heroes/CreateHero/CreateHeroEndpoint.cs:42 — current RuleFor(v => v.Name)
Description
The
CreateHeroendpoint should reject requests where the hero'sNameis 30 characters or fewer. CurrentlyCreateHeroRequestValidatoronly enforces.NotEmpty()onName.Acceptance Criteria
CreateHeroRequestValidatorrejectsNamewith length<= 30Relevant code
src/WebApi/Features/Heroes/CreateHero/CreateHeroEndpoint.cs:42— currentRuleFor(v => v.Name)