-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathworkflows-config-1.1.0.json
172 lines (172 loc) · 4.8 KB
/
workflows-config-1.1.0.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.quiltdata.com/workflows-config-1.1.0",
"type": "object",
"required": ["version", "workflows"],
"additionalProperties": false,
"definitions": {
"Version": {
"type": "string",
"pattern": "^[1-9][0-9]*(\\.(0|[1-9][0-9]*)){0,2}$",
"examples": ["1", "1.0"]
},
"CompoundVersion": {
"type": "object",
"additionalProperties": false,
"required": ["base"],
"properties": {
"base": {
"$ref": "#/definitions/Version"
},
"catalog": {
"$ref": "#/definitions/Version"
}
}
}
},
"properties": {
"catalog": true,
"version": {
"oneOf": [
{
"$ref": "#/definitions/Version"
},
{
"$ref": "#/definitions/CompoundVersion"
}
],
"examples": ["1.0", { "base": "1", "catalog": "1" }]
},
"is_workflow_required": {
"type": "boolean",
"description": "If true, users must succeed a workflow in order to push. If false, users may skip workflows altogether.",
"default": true,
"examples": [true, false]
},
"default_workflow": {
"type": "string",
"description": "The workflow to use if the user doesn't specify any.",
"examples": ["foobar"]
},
"workflows": {
"type": "object",
"minProperties": 1,
"propertyNames": {
"pattern": "^[A-Za-z_-][A-Za-z0-9_-]*$",
"maxLength": 64
},
"additionalProperties": {
"type": "object",
"required": ["name"],
"additionalProperties": false,
"properties": {
"catalog": true,
"name": {
"type": "string",
"description": "The workflow name displayed by Quilt in the Python API or web UI.",
"minLength": 1
},
"description": {
"description": "The workflow description displayed by Quilt in the Python API or web UI.",
"type": "string",
"minLength": 1
},
"handle_pattern": {
"type": "string",
"format": "regex",
"description": "Regular expression to validate package handle",
"examples": [
"^instruments/(production|staging)$",
"^(employee1|employee2)/instruments$"
]
},
"metadata_schema": {
"type": "string",
"description": "JSON Schema $id to validate package metadata against."
},
"entries_schema": {
"type": "string",
"description": "JSON Schema $id to validate package entries against."
},
"is_message_required": {
"type": "boolean",
"description": "If true, the user must provide a commit message.",
"default": false
}
}
},
"examples": [
{
"workflowA": {
"name": "Workflow A",
"metadata_schema": "schemaA"
}
}
]
},
"schemas": {
"type": "object",
"description": "JSON Schemas for validating user-supplied metadata and/or package entries.",
"minProperties": 1,
"examples": [
{
"schemaA": {
"url": "s3://foo/bar/.quilt/workflows/schema-a.json"
},
"schemaB": {
"url": "s3://foo/bar/.quilt/workflows/schema-a.json"
}
}
],
"additionalProperties": {
"type": "object",
"required": ["url"],
"properties": {
"url": {
"type": "string",
"description": "URL from where the schema will be obtained.",
"format": "uri"
}
}
}
},
"successors": {
"type": "object",
"description": "Buckets usable as destination with \"Push to Bucket\" in web UI.",
"examples": [
{
"s3://bucket1": {
"title": "Bucket 1 Title",
"copy_data": true
},
"s3://bucket2": {
"title": "Bucket 2 Title",
"copy_data": false
},
"s3://bucket3": {
"title": "Bucket 3 Title (`copy_data` defaults to `true`)"
}
}
],
"minProperties": 1,
"propertyNames": {
"format": "uri"
},
"additionalProperties": {
"type": "object",
"required": ["title"],
"properties": {
"title": {
"type": "string",
"minLength": 1
},
"copy_data": {
"type": "boolean",
"default": true,
"description": "If true, all package entries will be copied to the destination bucket. If false, all entries will remain in their current locations."
}
}
}
}
}
}