{
    "$schema": "http://json-schema.org/draft-04/schema",
    "id": "https://raw.githubusercontent.com/develohpanda/LoadTestSchemas/master/scenariodetail.schema.json",
    "title": "JSON Schema for defining Scenario Configuration",
    "type": "array",
    "additionalProperties": false,
    "items": {
        "title": "Scenario Detail",
        "type": "object",
        "properties": {
            "name": {
                "type": "string",
                "description": "The name of this scenario."
            },
            "weighting": {
                "type": "number",
                "description": "The weighting for this scenario."
            },
            "loop": {
                "type": "boolean",
                "description": "Should the user running this scenario loop or stop after one run?"
            },
            "throttleFrequencyInMinutes": {
                "type": "number",
                "description": "If looping, how frequently should the scenario be run? 0 if not throttled.",
                "minimum": 0
            }
        },
        "required": [
            "name",
            "weighting",
            "loop"
        ]
    }
}