aboutsummaryrefslogtreecommitdiffhomepage
path: root/sec_certs/config/settings-schema.json
blob: 7fcec5d6a2097b2001ebfeada0543fb082234856 (plain) (blame)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
    "title": "settings for sec-certs",
    "type": "object",
    "definitions": {
        "settings_string_entry": {
            "required": [
                "description",
                "value"
            ],
            "type": "object",
            "properties": {
                "description": {
                    "type": "string"
                },
                "value": {
                    "type": "string"
                }
            }
        },
        "settings_boolean_entry": {
            "type": "object",
            "required": [
                "description",
                "value"
            ],
            "properties": {
                "description": {
                    "type": "string"
                },
                "value": {
                    "type": "boolean"
                }
            }
        },
        "settings_number_entry": {
            "type": "object",
            "required": [
                "description",
                "value"
            ],
            "properties": {
                "description": {
                    "type": "string"
                },
                "value": {
                    "type": "number"
                }
            }
        },
        "settings_url_entry": {
            "type": "object",
            "required": [
                "description",
                "value"
            ],
            "properties": {
                "description": {
                    "type": "string"
                },
                "value": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^(https?|http?)://",
                    "minLength": 1,
                    "maxLength": 255
                }
            }
        }
    },
    "properties": {
        "log_filepath": {
            "$ref": "#/definitions/settings_string_entry"
        },
        "smallest_certificate_id_to_connect": {
            "$ref": "#/definitions/settings_number_entry"
        },
        "year_difference_between_validations": {
            "allOf": [
                {
                    "$ref": "#/definitions/settings_number_entry"
                },
                {
                    "properties": {
                        "value": {
                            "minimum": 0
                        }
                    }
                }
            ]
        },
        "use_text_with_newlines_during_parsing": {
            "$ref": "#/definitions/settings_boolean_entry"
        },
        "n_threads": {
            "allOf": [
                {
                    "$ref": "#/definitions/settings_number_entry"
                },
                {
                    "properties": {
                        "value": {
                            "minimum": 1
                        }
                    }
                }
            ]
        },
        "cpe_n_matching_threshold": {
            "allOf": [
                {
                    "$ref": "#/definitions/settings_number_entry"
                },
                {
                    "properties": {
                        "value": {
                            "minimum": 0,
                            "maximum": 100
                        }
                    }
                }
            ]
        },
        "cpe_n_max_matches": {
            "allOf": [
                {
                    "$ref": "#/definitions/settings_number_entry"
                },
                {
                    "properties": {
                        "value": {
                            "exclusiveMinimum": 0
                        }
                    }
                }
            ]
        },
        "cc_latest_snapshot": {
            "$ref": "#/definitions/settings_url_entry"
        },
        "cc_maintenances_latest_snapshot": {
            "$ref": "#/definitions/settings_url_entry"
        },
        "ignore_first_page": {
            "$ref": "#/definitions/settings_boolean_entry"
        },
        "cert_threshold": {
            "allOf": [
                {
                    "$ref": "#/definitions/settings_number_entry"
                },
                {
                    "properties": {
                        "value": {
                            "minimum": 0
                        }
                    }
                }
            ]
        },
        "fips_latest_snapshot": {
            "$ref": "#/definitions/settings_url_entry"
        },
        "enable_progress_bars": {
            "$ref": "#/definitions/settings_boolean_entry"
        }
    },
    "required": [
        "log_filepath",
        "smallest_certificate_id_to_connect",
        "year_difference_between_validations",
        "use_text_with_newlines_during_parsing",
        "n_threads",
        "cpe_matching_threshold",
        "cpe_n_max_matches",
        "cc_latest_snapshot",
        "cc_maintenances_latest_snapshot",
        "ignore_first_page",
        "cert_threshold",
        "fips_latest_snapshot",
        "enable_progress_bars"
    ]
}