TplBlock/vendor/jms/serializer/tests/Metadata/Driver/yml/BlogPost.yml
2018-03-26 21:57:35 +02:00

44 lines
1.3 KiB
YAML

JMS\Serializer\Tests\Fixtures\BlogPost:
xml_root_name: blog-post
xml_namespaces:
"": http://example.com/namespace
gd: http://schemas.google.com/g/2005
atom: http://www.w3.org/2005/Atom
dc: http://purl.org/dc/elements/1.1/
properties:
id:
type: string
groups: [comments, post]
xml_element:
cdata: false
title:
type: string
groups: [comments, post]
xml_element:
namespace: http://purl.org/dc/elements/1.1/
createdAt:
type: DateTime
xml_attribute: true
published:
type: boolean
serialized_name: is_published
xml_attribute: true
groups: [post]
etag:
type: string
groups: [post]
xml_attribute: true
xml_element:
namespace: http://schemas.google.com/g/2005
comments:
type: ArrayCollection<JMS\Serializer\Tests\Fixtures\Comment>
groups: [comments]
xml_list:
inline: true
entry_name: comment
author:
type: JMS\Serializer\Tests\Fixtures\Author
groups: [post]
xml_element:
namespace: http://www.w3.org/2005/Atom