mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-12 10:36:09 +03:00
Merge pull request #1851 from javiereguiluz/patch-3
[Doc] Fix some minor RST issues
This commit is contained in:
commit
06bc5136d7
@ -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:
|
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
|
.. code-block:: php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A nested serializer property with no context group
|
* A nested serializer property with no context group
|
||||||
*
|
*
|
||||||
@ -274,7 +275,8 @@ General PHP objects
|
|||||||
return $this->items;
|
return $this->items;
|
||||||
}
|
}
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: php
|
||||||
|
|
||||||
@OA\Schema(ref=@Model(type="App\Response\ItemResponse", groups=["Default"])),
|
@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.
|
It will generate two different component schemas (ItemResponse, ItemResponse2), even though Default and blank are the same. This is by design.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user