-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
51 lines (51 loc) · 1.24 KB
/
config.schema.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "GetQuotes Configuration",
"description": "Configuration settings for the GetQuotes application.",
"type": "object",
"properties": {
"authors": {
"type": "array",
"description": "List of authors to fetch quotes from.",
"items": {
"type": "string",
"description": "Name of an author."
},
"minItems": 1,
"examples": [
["Albert Einstein", "Isaac Newton"]
]
},
"theme_color": {
"type": "string",
"description": "Hex color code for theming, e.g., \"#RRGGBB\" or \"RRGGBB\".",
"pattern": "^#?[0-9A-Fa-f]{6}$",
"examples": [
"#FF5733",
"FF5733"
]
},
"max_tries": {
"type": "integer",
"description": "Maximum number of attempts to find a quote.",
"minimum": 1,
"maximum": 100,
"default": 30,
"examples": [
10,
50
]
},
"log_file": {
"type": "string",
"description": "Path to the log file.",
"default": "getquotes.log",
"examples": [
"logs/app.log",
"/var/log/getquotes.log"
]
}
},
"required": ["authors", "theme_color"],
"additionalProperties": false
}