{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "image",
    "description": "A image atom",
    "type": "object",
    "properties": {
        "modifier": {
            "description": "A modifier - default is 16:9",
            "enum": [
                "",
                "fit-parent",
                "1x1"
            ]
        },
        "alt": {
            "type": "string"
        },
        "srcset": {
            "type": "object",
            "properties": {
                "renditions": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "media": {
                                "description": "sizes",
                                "enum": [
                                    "100w",
                                    "180w",
                                    "230w",
                                    "290w",
                                    "320w",
                                    "360w",
                                    "460w",
                                    "480w",
                                    "580w",
                                    "640w",
                                    "760w",
                                    "960w",
                                    "1200w",
                                    "1280w",
                                    "1496w",
                                    "1920w",
                                    "1960w",
                                    "2880w",
                                    "3920w"
                                ]
                            },
                            "src": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "media",
                            "src"
                        ]
                    }
                }
            }
        },
        "customRenditions": {
            "type": "object",
            "description": "Custom renditions to render e.g. a fallback or preview image",
            "properties": {
                "fallbackImage": {
                    "type": "string",
                    "description": "The src to the fallback image to be rendered initially"
                }
            },
            "required": [
                "fallbackImage"
            ]
        }
    },
    "required": [
        "alt",
        "srcset"
    ]
}