Skip to content

Commit 41b7afe

Browse files
authored
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.
1 parent 263c804 commit 41b7afe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/configuration.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,13 @@ api_platform:
265265
# The list of enabled patch formats. The first one will be the default.
266266
patch_formats: []
267267

268+
# The list of enabled docs formats. The first one will be the default.
269+
docs_formats:
270+
jsonld: ['application/ld+json']
271+
#jsonapi: ['application/vnd.api+json']
272+
jsonopenapi: ['application/vnd.openapi+json']
273+
html: ['text/html']
274+
268275
# The list of enabled error formats. The first one will be the default.
269276
error_formats:
270277
jsonproblem:

0 commit comments

Comments
 (0)