{
    "$schema": "https:\/\/json-schema.org\/draft\/2020-12\/schema",
    "$id": "https:\/\/www.totalcms.co\/schemas\/feed.json",
    "type": "object",
    "id": "feed",
    "description": "A schema for a Total CMS Feed object",
    "properties": {
        "id": {
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/slug.json",
            "label": "Feed Post ID",
            "help": "A unique ID for this feed item. No spaces or special characters.",
            "field": "id",
            "factory": "uuid",
            "settings": {
                "autogen": "${title}-${uid}"
            }
        },
        "featured": {
            "type": "boolean",
            "label": "Featured",
            "help": "Mark this post as featured",
            "field": "checkbox",
            "factory": "boolean"
        },
        "title": {
            "type": "string",
            "label": "Title",
            "help": "A title for your post",
            "field": "text",
            "factory": "catchPhrase"
        },
        "created": {
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/date.json",
            "label": "Date Created",
            "help": "The date the post was created",
            "field": "hidden",
            "factory": "iso8601",
            "settings": {
                "onCreate": true,
                "readonly": true
            }
        },
        "updated": {
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/date.json",
            "label": "Date Updated",
            "help": "The date the post was updated",
            "field": "hidden",
            "factory": "iso8601",
            "settings": {
                "onUpdate": true,
                "readonly": true
            }
        },
        "image": {
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/image.json",
            "label": "Image",
            "help": "Image for this post",
            "field": "image",
            "factory": "imageShapes(1920,1080)"
        },
        "content": {
            "type": "string",
            "label": "Content",
            "help": "Post content",
            "field": "styledtext",
            "factory": "styledtext"
        }
    },
    "required": [
        "id",
        "title",
        "content",
        "created",
        "updated"
    ],
    "index": [
        "id",
        "image",
        "title",
        "content",
        "created",
        "updated",
        "featured"
    ]
}