-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConfigurationSchema.json
75 lines (75 loc) · 2.7 KB
/
ConfigurationSchema.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
{
"$schema": "http://json-schema.org/schema#",
"$id": "http://nikon.the.third/krystallizer",
"required": [
"$schema",
"connectionString",
"rootDirectoryParentPath",
"duplicatesFilePath",
"trashRegex",
"degreeOfParallelism",
"profiles"
],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"connectionString": {
"type": "string",
"description": "The connection string to the Postgres database."
},
"rootDirectoryParentPath": {
"type": "string",
"description": "The path relative from the executing assembly to the parent of all root directories."
},
"duplicatesFilePath": {
"type": "string",
"description": "The path relative from the executing assembly to the location where the duplicates file should be generated."
},
"trashRegex": {
"type": "string",
"description": "The regex to determine if a file name is a trash file."
},
"degreeOfParallelism": {
"type": "integer",
"description": "The number of hash computations to perform concurrently."
},
"profiles": {
"type": "object",
"description": "Contains execution profiles that can be passed as command line arguments.",
"required": [
"default"
],
"additionalProperties": {
"type": "object",
"required": [
"rootDirectories",
"removeTrash",
"removeEmptyFiles",
"checkFileSizes"
],
"additionalProperties": false,
"properties": {
"rootDirectories": {
"type": "array",
"description": "Lists all root directories to process for this profile.",
"items": { "type": "string" }
},
"removeTrash": {
"type": "boolean",
"description": "Remove files matching the TrashRegex from the directories?"
},
"removeEmptyFiles": {
"type": "boolean",
"description": "Remove files that are completely empty?"
},
"checkFileSizes": {
"type": "boolean",
"description": "Check if file sizes have changed and recompute hashes?"
}
}
}
}
}
}