-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader-policy.schema.json
More file actions
56 lines (56 loc) · 1.89 KB
/
Copy pathheader-policy.schema.json
File metadata and controls
56 lines (56 loc) · 1.89 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/FastLED/license/blob/main/header-policy.schema.json",
"title": "FastLED source header policy",
"type": "object",
"required": ["schema_version", "license", "profiles", "comments"],
"properties": {
"schema_version": {"const": 1},
"license": {
"type": "object",
"required": ["id", "header_version", "ai_document", "ai_document_sha256"],
"properties": {
"id": {"type": "string", "pattern": "^LicenseRef-[A-Za-z0-9.-]+$"},
"header_version": {"type": "integer", "minimum": 1},
"ai_document": {"type": "string", "minLength": 1},
"ai_document_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
},
"additionalProperties": false
},
"profiles": {
"type": "object",
"additionalProperties": {
"type": "object",
"required": ["roots", "extensions"],
"properties": {
"roots": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?![A-Za-z]:)(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!\\.$).+$"
},
"minItems": 1
},
"extensions": {"type": "array", "items": {"type": "string"}, "minItems": 1}
},
"additionalProperties": false
}
},
"comments": {"type": "object", "additionalProperties": {"type": "string"}},
"old_license_ids": {"type": "array", "items": {"type": "string"}},
"exclusions": {
"type": "array",
"items": {
"type": "object",
"required": ["pattern", "reason", "provenance"],
"properties": {
"pattern": {"type": "string"},
"reason": {"type": "string", "minLength": 1},
"provenance": {"type": "string", "minLength": 1}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}