-
Notifications
You must be signed in to change notification settings - Fork 0
/
published-schema.json
86 lines (86 loc) · 2.73 KB
/
published-schema.json
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://specs.openstack.org/openstack/service-types-authority/_downloads/published-schema.json#",
"type": "object",
"required": ["services", "version", "sha", "forward", "reverse"],
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "DateTime based version in ISO Format (https://tools.ietf.org/html/rfc3339#section-5.6",
"format": "date-time"
},
"sha": {
"type": "string",
"description": "sha of the git commit from which the file was generated",
"pattern": "^[a-f0-9]{40}"
},
"services": {
"type": "array",
"items": {
"$ref": "https://specs.openstack.org/openstack/service-types-authority/_downloads/schema.json#/definitions/service"
}
},
"forward": {
"type": "object",
"description": "Mapping of official service-type to historical aliases",
"patternProperties": {
"^([a-z][a-z-]*[a-z]+|ec2-api)$": {
"type": "array",
"items": {
"type": "string"
},
"description": "Ordered list of historical aliases"
}
},
"additionalProperties": false
},
"reverse": {
"type": "object",
"description": "Reverse mapping of historical alias to official service-type",
"patternProperties": {
"^.*$": {
"type": "string",
"pattern": "^([a-z][a-z-]*[a-z]+|ec2-api)$",
"description": "Official service-type"
}
}
},
"primary_service_by_project": {
"type": "object",
"description": "Mapping of project name to the service data for the primary service",
"patternProperties": {
"^.*$": {
"$ref": "https://specs.openstack.org/openstack/service-types-authority/_downloads/schema.json#/definitions/service"
}
}
},
"all_types_by_service_type": {
"type": "object",
"description": "Mapping of official service-type to official type and aliases",
"patternProperties": {
"^([a-z][a-z-]*[a-z]+|ec2-api)$": {
"type": "array",
"items": {
"type": "string"
},
"description": "Ordered list of official type and historical aliases."
}
},
"additionalProperties": false
},
"service_types_by_project": {
"type": "object",
"description": "Mapping of project name to list of service-types for the project",
"patternProperties": {
"^([a-z][a-z-]*[a-z]+|ec2-api)$": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of service types associated with a project"
}
}
}
}
}