From 5232463cad33ce7df1ea1affae1712cb1534de76 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 16 Jul 2021 17:39:22 +0200 Subject: [PATCH] [Doc] Fix some minor RST issues --- Resources/doc/index.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Resources/doc/index.rst b/Resources/doc/index.rst index 515b836..fdc7c0e 100644 --- a/Resources/doc/index.rst +++ b/Resources/doc/index.rst @@ -260,6 +260,7 @@ General PHP objects NOTE: If you are using serialization contexts (e.g. Groups) each permutation will be treated as a separate Path. For example if you have the following two variations defined in different places in your code: .. code-block:: php + /** * A nested serializer property with no context group * @@ -274,7 +275,8 @@ General PHP objects return $this->items; } - .. code-block:: + .. code-block:: php + @OA\Schema(ref=@Model(type="App\Response\ItemResponse", groups=["Default"])), It will generate two different component schemas (ItemResponse, ItemResponse2), even though Default and blank are the same. This is by design.