// If a mapping is defined, you should not send properties that are undefined.
// Sending undefined fields will throw an UnexpectedFieldException
$keyDiff = array_diff(array_keys($data), $propertyKeys); if(\count($keyDiff)){ foreach($keyDiffas$fieldName){ $parameters->getContext()->getExceptions()->add(