-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkflow-registry.schema.json
More file actions
36 lines (36 loc) · 1.34 KB
/
Copy pathworkflow-registry.schema.json
File metadata and controls
36 lines (36 loc) · 1.34 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://zaati-os.dev/schemas/workflow-registry.schema.json",
"title": "Zaati OS workflow registry",
"type": "object",
"additionalProperties": false,
"required": ["registry_version", "workflows"],
"properties": {
"$schema": { "type": "string" },
"registry_version": { "const": "0.1.1" },
"workflows": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["id", "label", "description", "prompt", "source_ids", "max_attempts", "publication"],
"properties": {
"id": { "type": "string", "pattern": "^[a-z0-9-]+$" },
"label": { "type": "string", "minLength": 1, "maxLength": 80 },
"description": { "type": "string", "minLength": 1, "maxLength": 240 },
"prompt": { "type": "string", "pattern": "^prompts/[a-z0-9-]+\\.md$" },
"source_ids": {
"type": "array",
"minItems": 1,
"maxItems": 20,
"uniqueItems": true,
"items": { "type": "string", "pattern": "^[a-z0-9-]+:[a-z0-9-]+$" }
},
"max_attempts": { "type": "integer", "minimum": 1, "maximum": 5 },
"publication": { "enum": ["pull-request", "local-transaction"] }
}
}
}
}
}