tests/Fixtures/schemas/acme/blog/entity/article/1-0-1.xml
<?xml version="1.0" encoding="UTF-8" ?>
<pbj-schema xmlns="http://gdbots.io/pbj/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://gdbots.io/pbj/xsd http://gdbots.io/pbj/xsd/schema.xsd">
<schema id="pbj:acme:blog:entity:article:1-0-1">
<fields>
<field name="title" type="string"/>
<field name="excerpt" type="text"/>
<field name="excerpt_html" type="text"/>
<field name="thumbnails" type="string" format="url" rule="map"/>
<field name="private" type="boolean"/>
<field name="publish_status" type="string-enum">
<default>draft</default>
<enum id="acme:blog:publish-status"/>
</field>
<field name="content_type" type="string-enum">
<default>unknown</default>
<enum id="acme:blog:content-type"/>
</field>
<field name="expires_at" type="timestamp"/>
<field name="comments" type="message" rule="list">
<any-of>
<curie>acme:blog:entity:comment</curie>
</any-of>
</field>
</fields>
<mixins>
<curie-major>acme:core:mixin:article:v1</curie-major>
<curie-major>acme:blog:mixin:has-comments:v1</curie-major>
</mixins>
</schema>
</pbj-schema>