],
];
} /**
* {@inheritdoc}
*/
protected function assertNormalizationEdgeCases($method, Url
$url, array
$request_options): void
{ parent::
assertNormalizationEdgeCases($method,
$url,
$request_options);
if ($this->entity->
getEntityType()->
hasKey('bundle'
)) { $fieldName =
static::
$fieldName;
// DX: 422 when date type is incorrect.
$normalization =
$this->
getNormalizedPostEntity();
$normalization[static::
$fieldName][0
]['value'
] =
[ '2017', '03', '01', '21', '53', '00',
];
$request_options[RequestOptions::BODY
] =
$this->serializer->
encode($normalization,
static::
$format);
$response =
$this->
request($method,
$url,
$request_options);
$message = "Unprocessable Entity: validation failed.\n{
$fieldName}.0: The datetime value must be a string.\n{
$fieldName}.0.value: This value should be of the correct primitive type.\n";