Skip to content

Commit dc67e90

Browse files
authored
Fix Serializer context configuration in YAML
1 parent f78344d commit dc67e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

serializer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ You can also specify the context on a per-property basis::
212212
App\Model\Person:
213213
attributes:
214214
createdAt:
215-
context:
216-
datetime_format: 'Y-m-d'
215+
contexts:
216+
- { context: { datetime_format: 'Y-m-d' } }
217217
218218
.. code-block:: xml
219219

0 commit comments

Comments
 (0)