Skip to content

Commit

Permalink
Merge pull request #282 from mailjet/DE-1220-resource-contacts-missing
Browse files Browse the repository at this point in the history
Fix filters Field
  • Loading branch information
oleksandr-mykhailenko authored Dec 4, 2023
2 parents 9e41f5e + 6d7938a commit 29447d8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Mailjet/Normalizer/ContactNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ private static function getValidationRule(): Assert\Collection
return new Assert\Collection([
'fields' => [
'filters' => new Assert\Collection([
'countonly' => new Assert\Length(['min' => 1]),
'fields' => [
'countonly' => new Assert\Length(['min' => 1]),
],
'allowExtraFields' => true,
]),
],
'allowMissingFields' => false,
'allowExtraFields' => true,
]);
}
}

0 comments on commit 29447d8

Please sign in to comment.