summaryrefslogtreecommitdiff
path: root/api/schemas/environments.json
blob: b9b1f15b70ee9a051196142326f54f890f96eb29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
    "$schema":     "http://json-schema.org/draft-04/schema#",
    "title":       "Environment Enumeration",
    "description": "An enumeration of environments and their modules",
    "type":        "object",
    "properties": {
        "search_paths": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "minItems": 1,
            "description": "An array of the paths where the master looked for environments."
        },
        "environments": {
            "type": "object",
            "patternProperties": {
                "^[a-z0-9_]+$": {
                    "type": "object",
                    "properties": {
                        "modules" : {
                            "type": "object",
                            "patternProperties": {
                                "^[a-z0-9_\-]+$": {
                                    "type": "object",
                                    "properties": {
                                        "version": { "type": "string" }
                                    },
                                    "required": ["version"]
                                }
                            }
                        }
                    },
                    "required": ["modules"]
                }
            }
        }
    },
    "required": ["search_path", "environments"]
}