소스 검색

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 년 전
부모
커밋
a3ee00b6aa
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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