You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,22 @@ I do my best to keep up with everything
23
23
2. 0.X.0 versions are minor changes
24
24
3. X.0.0 versions are major changes
25
25
26
+
## Schema Validation
27
+
28
+
### Overview
29
+
30
+
Schema validation is a method to ensure that data follows a predefined structure, data types, and constraints set by a Schema document. It compares the document against the schema rules, highlighting any deviations from the expected format or content.
31
+
32
+
### How to use it
33
+
34
+
- If you haven't already, install [VSCode](https://code.visualstudio.com/docs/setup/setup-overview).
35
+
- Install the [YAML extension](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml)
36
+
- Include the following line at the top of your config file (already present if you're modifying the config sample):
Copy file name to clipboardExpand all lines: config/config.sample.yml
+8-6
Original file line number
Diff line number
Diff line change
@@ -216,11 +216,13 @@ border_replacerr:
216
216
border_width: 26
217
217
# skip - This will skip border replacement until the next schedule/holiday
218
218
skip: false
219
-
# fix light mm2k posters so no black bar shows at the bottom
219
+
# The exclusion list is ideal to fix those pesky posters that MM2K makes (or others) that don't fit the normal scheme of the black gradient at the bottom
220
+
# This will omit the black border at the bottom of the poster that gets made on most posters and remove all borders
221
+
# Below are a few examples of certain posters that don't fit the normal scheme
222
+
# NOte it is not recommended/supported to use the exclusion list with series posters
220
223
exclusion_list:
221
224
# - "Fall (2022)"
222
225
# - "Inglourious Basterds (2009)"
223
-
# - "True Detective (2014) - Season 1"
224
226
# Setting a border color of nothing will remove the border, else it will add the border color
225
227
# Examples: Must include everything from double quotes to double quotes such as "#FF0000"
226
228
# "#FF0000" - Red
@@ -431,13 +433,13 @@ bash_scripts:
431
433
nohl_bash:
432
434
source:
433
435
include:
434
-
-
435
-
-
436
+
- /data/include1
437
+
- /data/include2
436
438
# Exclude certain movie/series folders from being searched
437
439
# NOTE: It must be exactly as the folder is listed in your file system
438
440
exclude:
439
-
-
440
-
-
441
+
- /data/exclude1
442
+
- /data/exclude2
441
443
jduparr:
442
444
data_dir:
443
445
# Silences notifications if no duplicates are found
Copy file name to clipboardExpand all lines: schemas/config-schema.json
+14-4
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,13 @@
5
5
"definitions": {
6
6
"run": {
7
7
"type": "string",
8
-
"pattern": "^run$"
8
+
"enum": [
9
+
"run"
10
+
]
9
11
},
10
12
"hourly": {
11
13
"type": "string",
12
-
"pattern": "^hourly\\([0-5][0-9]\\)$"
14
+
"pattern": "^hourly\\((?:[01]?[0-9]|2[0-3])\\)$"
13
15
},
14
16
"daily": {
15
17
"type": "string",
@@ -51,7 +53,7 @@
51
53
"type": "null"
52
54
}
53
55
],
54
-
"description": "A schedule of either run, hourly, daily, weekly, monthly, or cron. If null, the task will not be scheduled.\nExamples:\nrun\nhourly(30)\ndaily(12:23)\ndaily(10:18|12:23)\nweekly(monday@12:00)\nmonthly(15@12:00)\ncron(0 0 * * *)"
56
+
"description": "A schedule of either run, hourly, daily, weekly, monthly, or cron. If null, the task will not be scheduled.\nExamples:\nrun\nhourly(10)\ndaily(12:23)\ndaily(10:18|12:23)\nweekly(monday@12:00)\nmonthly(15@12:00)\ncron(0 0 * * *)"
0 commit comments