You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When I upgraded to 7.6.0 and regenerated my OpenAPI models with Jane, I got this runtime error:
Fatal error: Declaration of MyApplication\api\Normalizer\CaseOwnedNormalizer::supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool
must be compatible with Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization($data, $type, $format = null)
in /var/www/generated/jane/Normalizer/CaseOwnedNormalizer.php on line 524
Due to the CMS framework I use (Drupal), my runtime dependencies are locked at symfony/serializer:^4.4.7. This means that the signature for the supportsDenormalization() method is no longer compatible with the generated normalizers from Jane, hence the fatal error above.
However, be aware that both Symfony 5.4 and 6.4 are LTS versions with bugfix support for at least another 18 months. 4.4 was just EOL'ed a couple months ago, so that's my own problem, but you might consider adding CI tests for the other major Symfony versions to avoid regressions.
The text was updated successfully, but these errors were encountered:
Jane version(s) affected: 7.6.0
Description
When I upgraded to 7.6.0 and regenerated my OpenAPI models with Jane, I got this runtime error:
Due to the CMS framework I use (Drupal), my runtime dependencies are locked at
symfony/serializer:^4.4.7
. This means that the signature for thesupportsDenormalization()
method is no longer compatible with the generated normalizers from Jane, hence the fatal error above.This appears to be the case all the way up to Symfony 6.4.
How to reproduce
I can't share my schema, but I assume any OpenAPI schema that is denormalized using Symfony <7.0 will experience this error.
Possible Solution
I assume this comes from the recently added support for Symfony 7, which also dropped support for older Symfony versions.
However, be aware that both Symfony 5.4 and 6.4 are LTS versions with bugfix support for at least another 18 months. 4.4 was just EOL'ed a couple months ago, so that's my own problem, but you might consider adding CI tests for the other major Symfony versions to avoid regressions.
The text was updated successfully, but these errors were encountered: