{
    "title": "StyleSymbolReference",
    "type": "object",
    "$schema": "http://json-schema.org/draft-04/schema",
    "description": "The StyleSymbolReference is used to reference a symbol from a portal styleItem",
    "properties": {
        "name": {
            "type": "string",
            "description": "Identifies a symbol in the style by name."
        },
        "styleName": {
            "type": "string",
            "description": "A registered web style name, such as `EsriThematicTreesStyle`"
        },
        "styleUrl": {
            "type": "string",
            "description": "URL to a style definition."
        },
        "type": {
            "type": "string",
            "description": "The type of the symbol",
            "enum": [
                "styleSymbolReference"
            ]
        }
    },
    "oneOf": [
        {
            "required": [
                "type",
                "name",
                "styleUrl"
            ]
        },
        {
            "required": [
                "type",
                "name",
                "styleName"
            ]
        }
    ],
    "additionalProperties": false,
    "esriDocumentation": {
        "examples": [
            {
                "code": {
                    "symbol": {
                        "type": "styleSymbolReference",
                        "styleName": "EsriThematicTreesStyle",
                        "name": "Frangula"
                    }
                }
            }
        ]
    }
}