{
    "title": "Range",
    "$schema": "http://json-schema.org/draft-04/schema",
    "description": "Range object.",
    "properties": {
        "interactionMode": {
            "type": "string",
            "description": "Indicates the mode in which the active range should be presented to the user.",
            "enum": [
                "picker",
                "slider"
            ]
        },
        "numberOfStops": {
            "type": "number",
            "description": "This is used to generate the activeRangeValues if activeRangeValues are not specified."
        },
        "stopInterval": {
            "type": "number",
            "description": "Interval in which stops should be generated."
        }
    },
    "oneOf": [
        {
            "required": [
                "interactionMode",
                "numberOfStops"
            ]
        },
        {
            "required": [
                "interactionMode",
                "stopInterval"
            ]
        }
    ],
    "additionalProperties": false,
    "esriDocumentation": {
        "examples": [
            {
                "title": "range",
                "code": {
                    "range": {
                        "interactionMode": "slider",
                        "stopInterval": 1
                    }
                }
            }
        ]
    }
}