From 41b7afec389462be600c8f5fd8d13428351fb4ba Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Sun, 2 Nov 2025 04:24:01 +0300 Subject: [PATCH] docs: add missing "docs_formats" configuration for Symfony **Description:** Adds the missing `docs_formats` configuration section to the Symfony configuration example in the documentation. This configuration is essential for users who want to: * Customize the available documentation formats (e.g., enable/disable JSON-LD, OpenAPI, HTML). * Change the default documentation format (which is the first one in the list). The equivalent configuration was already present in the Laravel documentation example, but was overlooked in the Symfony one. --- core/configuration.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/configuration.md b/core/configuration.md index 0d55bd5c506..961f31af3bd 100644 --- a/core/configuration.md +++ b/core/configuration.md @@ -265,6 +265,13 @@ api_platform: # The list of enabled patch formats. The first one will be the default. patch_formats: [] + # The list of enabled docs formats. The first one will be the default. + docs_formats: + jsonld: ['application/ld+json'] + #jsonapi: ['application/vnd.api+json'] + jsonopenapi: ['application/vnd.openapi+json'] + html: ['text/html'] + # The list of enabled error formats. The first one will be the default. error_formats: jsonproblem: