# CONTENT
#
# This is the main schema for all types of content object!
# Version 2 - 2017-12-20

_types: !import flyway/types.yml

# ----------------------------------------------------------------------------------------------------------------------
# The Content schema

properties:

    modelName:
        filter: Enum
        options: {values: [article, nativearticle, gallery, product]}
        required: true

    event: !ref
        &: _types.simpletext
        required: true

    origin: !ref
        &: _types.simpletext
        required: true

    _links: !ref
        &: _types.links

    collectionName: !ref
        &: _types.simpletext

    data:
        filter: Passthrough
        options: { type: any }