-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcatalog.schema.json
More file actions
40 lines (40 loc) · 1.3 KB
/
catalog.schema.json
File metadata and controls
40 lines (40 loc) · 1.3 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
37
38
39
40
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://validatedpatterns.io/catalog.schema.json",
"title": "Pattern Catalog",
"description": "Schema for the pattern catalog index file (catalog.yaml)",
"type": "object",
"required": ["generated_at", "generator_version", "catalog_description", "patterns"],
"additionalProperties": false,
"properties": {
"generated_at": {
"type": "string",
"description": "ISO 8601 timestamp of catalog generation",
"format": "date-time"
},
"generator_version": {
"type": "string",
"description": "Version of the catalog generator",
"pattern": "^[0-9]+\\.[0-9]+$"
},
"catalog_description": {
"type": "string",
"description": "Description shown in the catalog UI"
},
"catalog_logo": {
"type": "string",
"description": "URL or filename of the logo image displayed on the catalog page. If a filename it just needs adding to the catalog/ folder",
"format": "uri",
"default": "https://validatedpatterns.io/images/logo.png"
},
"patterns": {
"type": "array",
"description": "List of pattern identifiers included in the catalog",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]*$"
},
"minItems": 1
}
}
}