Symfony NotBlank constraint allow blank string
问题 I'm working with Symfony5 and ApiPlatform with phpunit for the tests I'm running tests on field validation. My issue comes from the fact that I want to restrain the user's possiblity to enter a blank string in a property named name as follow : /** * @ApiResource( * attributes={ * "normalization_context"={"groups"={"cons:read", "cons:list"}}, * "denormalization_context"={"groups"={"cons:write"}} * }, * collectionOperations={ * "get"={ * "mehtod"="GET", * "normalization_context"={"groups"={