Browse Source

Improve yaml documentacion Fix #100

Extrtacted from https://github.com/schmittjoh/serializer/blob/master/tests/JMS/Serializer/Tests/Metadata/Driver/yml/ObjectWithVirtualProperties.yml
Brais Gabín 11 years ago
parent
commit
a3ee00b6aa
1 changed files with 3 additions and 1 deletions
  1. 3 1
      doc/reference/yml_reference.rst

+ 3 - 1
doc/reference/yml_reference.rst

@@ -15,7 +15,9 @@ YAML Reference
             map:
                 some-value: ClassName
         virtual_properties:
-            getSomeProperty: {}
+            getSomeProperty:
+                serialized_name: foo
+                type: integer
         xml_namespaces:
             "": http://your.default.namespace
             atom: http://www.w3.org/2005/Atom