{
    "id": "https://opendesk.cc/schemata/base/option.json",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Winnow Option",
    "type": "object",
    "properties": {
        "name": {
            "type": "string"
        },
        "type": {
            "type": "string"
        },
        "description": {
            "type": "string"
        },
        "images": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "asset": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    }
                },
                "required": [
                    "asset"
                ],
                "additionalProperties": false
            }
        },
        "scopes": {
            "type": "array",
            "items": {
                "type": "string",
                "oneOf": [
                    {
                        "pattern": "customer"
                    },
                    {
                        "pattern": "maker"
                    },
                    {
                        "pattern": "operator"
                    },
                    {
                        "pattern": "admin"
                    },
                    {
                        "pattern": "designer"
                    }
                ]
            }
        }
    },
    "required": [
        "type"
    ]
}