Rustam Mamadaminov

Results 54 comments of Rustam Mamadaminov

I agree with @romkatsu. This must be done using a validator.

`Rule::skipOnEmpty` doesn't solve this issue?

```php Required::rule()->when(function ($value, ValidationContext $context) { return $context->getDataSet()->hasAttribute('relatedAttribute'); }) ```

Maybe no need additional attributes: ```php // in controller public function someAction(#[Body] UserDto $userDto) // also form can be here // dto or form final class UserDto implements SomeInterfaceForDetermineInRequestModel {...