{
    "$schema": "http://json-schema.org/draft-04/schema",
    "id": "https://raw.githubusercontent.com/develohpanda/LoadTestSchemas/master/testperiodconfig.schema.json",
    "title": "JSON Schema for defining the test periods",
    "type": "array",
    "additionalProperties": false,
    "items": {
        "title": "Test Period",
        "type": "object",
        "properties": {
            "name": {
                "type": "string",
                "description": "The name of this test period."
            },
            "periodType": {
                "type": "string",
                "description": "The type of period.",
                "enum": [
                    "RampUp",
                    "RampDown",
                    "Constant"
                ]
            },
            "users": {
                "type": "integer",
                "description": "How many users does this period effect?",
                "minimum": 0
            },
            "durationMinutes": {
                "type": "number",
                "description": "How long should this period run for in minutes?",
                "exclusiveMinimumm": true,
                "minimum": 0
            }
        },
        "required": [
            "periodType",
            "durationMinutes"
        ]
    }
}