Skip to content

Commit 3050bed

Browse files
authored
fix: documentation for using a service to generate validation groups (#1638)
1 parent 91baf6b commit 3050bed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ use ApiPlatform\Metadata\ApiResource;
288288
use App\Validator\AdminGroupsGenerator;
289289
use Symfony\Component\Validator\Constraints as Assert;
290290

291-
#[ApiResource(validationContext: ['groups' => [AdminGroupsGenerator::class]])
291+
#[ApiResource(validationContext: ['groups' => AdminGroupsGenerator::class])
292292
class Book
293293
{
294294
#[Assert\NotBlank(groups: ['a'])]

0 commit comments

Comments
 (0)