From e3f000f52e334b28c7d08606d4462d92099a0dfb Mon Sep 17 00:00:00 2001 From: Nikita Shipilov <45032351+Oni4i@users.noreply.github.com> Date: Sat, 25 May 2024 15:19:51 +0300 Subject: [PATCH] Update symfony_attributes.rst Found out that MapQueryString Attribute doesn't work without component symfony/property-access (ObjectNormalizer::class). And there is no info in doc about that, also the problem is not obvious for regular MapQueryString users as the exception highlight only that there is no normalizer that supports this --- docs/symfony_attributes.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/symfony_attributes.rst b/docs/symfony_attributes.rst index b874b6af0..4a9d60d98 100644 --- a/docs/symfony_attributes.rst +++ b/docs/symfony_attributes.rst @@ -6,6 +6,17 @@ NelmioApiDocBundle has the ability to automatically create documentation from ** MapQueryString ------------------------------- +Install required component + +.. code-block:: terminal + + $ composer require symfony/property-access + +.. include:: /components/require_autoload.rst.inc + +Usage +----- + Using the `Symfony MapQueryString`_ attribute allows NelmioApiDocBundle to automatically generate your query parameter documentation for your endpoint from your object. .. versionadded:: 6.3