diff --git a/src/Support/Normalization/NormalizeToPropertiesAndClassName.php b/src/Support/Normalization/NormalizeToPropertiesAndClassName.php index 787362a4..1fc8f58f 100644 --- a/src/Support/Normalization/NormalizeToPropertiesAndClassName.php +++ b/src/Support/Normalization/NormalizeToPropertiesAndClassName.php @@ -26,7 +26,7 @@ public static function deserializeForVerbs(array $data, DenormalizerInterface $d { $required = self::requiredDataForVerbsDeserialization(); - if (! Arr::has($data, $required)) { + if (! empty($required) && ! Arr::has($data, $required)) { throw new InvalidArgumentException(sprintf( 'The following data is required to deserialize to "%s": %s.', class_basename(static::class),