-
-
Notifications
You must be signed in to change notification settings - Fork 957
Open
Labels
Description
API Platform version(s) affected: v.4.2.9 | v.4.2.10
Symfony : 7.4 ( symfony/framework-bundle: 7.4.1)
PHP 8.3
Symfony Serializer : v7.4.2
Description
In ReDoc-only documentation cases as documented in https://api-platform.com/docs/core/openapi/#disabling-swagger-ui-or-redoc-with-symfony, we get an exception:
"Exception occurred with message 'Serialization for the format "html" is not supported.' in '/var/www/html/vendor/symfony/serializer/Serializer.php on Line 127.
when updating api-platform/symfony from version 4.1.28 to 4.2.9
How to reproduce
# composer.json
require: { …
"api-platform/symfony": "v4.2.9",
…
# config/packages/api_platform.yaml
api_platform:
docs_formats:
jsonld: ['application/ld+json']
jsonopenapi: ['application/vnd.openapi+json']
html: ['text/html']
enable_swagger_ui: false
enable_re_doc: true
agcrpse