Symfony 6 Constraints: How to validate and array which can be empty
My class, which I try to validate, has a property, which can be either an empty array or an array of certain objects:
How to activate Symfony validator translations
I am using Symfony6.4 for an API and recently changed to attributes.
e.g.:
Symfony 6 Validation Constraints falsely pass
I want to ascertain that a value my api receives is a positive integer and not zero or null