|
153 | 153 | "title": { "type": "string" }, |
154 | 154 | "description": { "type": "string" }, |
155 | 155 | "example": { "type": "string" }, |
| 156 | + "pattern": { "type": "string" }, |
156 | 157 | "nullable": { "type": "boolean" }, |
| 158 | + "minLength": { "type": "integer" }, |
| 159 | + "maxLength": { "type": "integer" }, |
157 | 160 | "editor": { "enum": ["textfield", "textarea", "hidden"] }, |
158 | 161 | "isSecret": { "enum": [true] }, |
159 | 162 | "sectionCaption": { "type": "string" }, |
|
166 | 169 | "type": "object", |
167 | 170 | "properties": { |
168 | 171 | "type": { "enum": ["array"] }, |
169 | | - "editor": { "enum": ["json", "requestListSources", "pseudoUrls", "globs", "keyValue", "stringList", "select", "hidden"] } |
| 172 | + "editor": { "enum": ["json", "requestListSources", "pseudoUrls", "globs", "keyValue", "stringList", "select", "hidden"] }, |
| 173 | + "isSecret": { "type": "boolean" } |
170 | 174 | }, |
171 | 175 | "additionalProperties": true, |
172 | 176 | "required": ["type", "title", "description", "editor"], |
173 | 177 | "if": { |
174 | 178 | "properties": { |
175 | | - "editor": { "const": "select" } |
| 179 | + "isSecret": { |
| 180 | + "not": { |
| 181 | + "const": true |
| 182 | + } |
| 183 | + } |
176 | 184 | } |
177 | 185 | }, |
178 | 186 | "then": { |
179 | | - "additionalProperties": false, |
180 | | - "required": ["items"], |
181 | | - "properties": { |
182 | | - "type": { "enum": ["array"] }, |
183 | | - "editor": { "enum": ["select"] }, |
184 | | - "title": { "type": "string" }, |
185 | | - "description": { "type": "string" }, |
186 | | - "default": { "type": "array" }, |
187 | | - "prefill": { "type": "array" }, |
188 | | - "example": { "type": "array" }, |
189 | | - "nullable": { "type": "boolean" }, |
190 | | - "minItems": { "type": "integer" }, |
191 | | - "maxItems": { "type": "integer" }, |
192 | | - "uniqueItems": { "type": "boolean" }, |
193 | | - "sectionCaption": { "type": "string" }, |
194 | | - "sectionDescription": { "type": "string" }, |
195 | | - "items": { |
196 | | - "type": "object", |
197 | | - "additionalProperties": false, |
198 | | - "properties": { |
199 | | - "type": { "enum": ["string"] }, |
200 | | - "enum": { |
201 | | - "type": "array", |
202 | | - "items": { "type": "string" }, |
203 | | - "uniqueItems": true |
| 187 | + "if": { |
| 188 | + "properties": { |
| 189 | + "editor": { "const": "select" } |
| 190 | + } |
| 191 | + }, |
| 192 | + "then": { |
| 193 | + "additionalProperties": false, |
| 194 | + "required": ["items"], |
| 195 | + "properties": { |
| 196 | + "type": { "enum": ["array"] }, |
| 197 | + "editor": { "enum": ["select"] }, |
| 198 | + "title": { "type": "string" }, |
| 199 | + "description": { "type": "string" }, |
| 200 | + "default": { "type": "array" }, |
| 201 | + "prefill": { "type": "array" }, |
| 202 | + "example": { "type": "array" }, |
| 203 | + "nullable": { "type": "boolean" }, |
| 204 | + "minItems": { "type": "integer" }, |
| 205 | + "maxItems": { "type": "integer" }, |
| 206 | + "uniqueItems": { "type": "boolean" }, |
| 207 | + "sectionCaption": { "type": "string" }, |
| 208 | + "sectionDescription": { "type": "string" }, |
| 209 | + "items": { |
| 210 | + "type": "object", |
| 211 | + "additionalProperties": false, |
| 212 | + "properties": { |
| 213 | + "type": { "enum": ["string"] }, |
| 214 | + "enum": { |
| 215 | + "type": "array", |
| 216 | + "items": { "type": "string" }, |
| 217 | + "uniqueItems": true |
| 218 | + }, |
| 219 | + "enumTitles": { |
| 220 | + "type": "array", |
| 221 | + "items": { "type": "string" } |
| 222 | + } |
204 | 223 | }, |
205 | | - "enumTitles": { |
206 | | - "type": "array", |
207 | | - "items": { "type": "string" } |
208 | | - } |
| 224 | + "required": ["type", "enum"] |
209 | 225 | }, |
210 | | - "required": ["type", "enum"] |
| 226 | + "isSecret": { "enum": [false] } |
| 227 | + } |
| 228 | + }, |
| 229 | + "else": { |
| 230 | + "additionalProperties": false, |
| 231 | + "properties": { |
| 232 | + "type": { "enum": ["array"] }, |
| 233 | + "editor": { "enum": ["json", "requestListSources", "pseudoUrls", "globs", "keyValue", "stringList", "hidden"] }, |
| 234 | + "title": { "type": "string" }, |
| 235 | + "description": { "type": "string" }, |
| 236 | + "default": { "type": "array" }, |
| 237 | + "prefill": { "type": "array" }, |
| 238 | + "example": { "type": "array" }, |
| 239 | + "nullable": { "type": "boolean" }, |
| 240 | + "minItems": { "type": "integer" }, |
| 241 | + "maxItems": { "type": "integer" }, |
| 242 | + "uniqueItems": { "type": "boolean" }, |
| 243 | + "sectionCaption": { "type": "string" }, |
| 244 | + "sectionDescription": { "type": "string" }, |
| 245 | + "placeholderKey": { "type": "string" }, |
| 246 | + "placeholderValue": { "type": "string" }, |
| 247 | + "patternKey": { "type": "string" }, |
| 248 | + "patternValue": { "type": "string" }, |
| 249 | + "isSecret": { "enum": [false] } |
211 | 250 | } |
212 | 251 | } |
213 | 252 | }, |
214 | 253 | "else": { |
215 | 254 | "additionalProperties": false, |
216 | 255 | "properties": { |
217 | 256 | "type": { "enum": ["array"] }, |
218 | | - "editor": { "enum": ["json", "requestListSources", "pseudoUrls", "globs", "keyValue", "stringList", "hidden"] }, |
| 257 | + "editor": { "enum": ["json", "hidden"] }, |
219 | 258 | "title": { "type": "string" }, |
220 | 259 | "description": { "type": "string" }, |
221 | | - "default": { "type": "array" }, |
222 | | - "prefill": { "type": "array" }, |
223 | 260 | "example": { "type": "array" }, |
224 | 261 | "nullable": { "type": "boolean" }, |
225 | 262 | "minItems": { "type": "integer" }, |
226 | 263 | "maxItems": { "type": "integer" }, |
227 | 264 | "uniqueItems": { "type": "boolean" }, |
228 | 265 | "sectionCaption": { "type": "string" }, |
229 | 266 | "sectionDescription": { "type": "string" }, |
230 | | - "placeholderKey": { "type": "string" }, |
231 | | - "placeholderValue": { "type": "string" }, |
232 | | - "patternKey": { "type": "string" }, |
233 | | - "patternValue": { "type": "string" } |
| 267 | + "isSecret": { "enum": [true] } |
234 | 268 | } |
235 | 269 | } |
236 | 270 | }, |
|
282 | 316 | "title": { "type": "string" }, |
283 | 317 | "description": { "type": "string" }, |
284 | 318 | "example": { "type": "object" }, |
| 319 | + "patternKey": { "type": "string" }, |
| 320 | + "patternValue": { "type": "string" }, |
285 | 321 | "nullable": { "type": "boolean" }, |
| 322 | + "minProperties": { "type": "integer" }, |
| 323 | + "maxProperties": { "type": "integer" }, |
286 | 324 | "editor": { "enum": ["json", "hidden"] }, |
287 | 325 | "sectionCaption": { "type": "string" }, |
288 | 326 | "sectionDescription": { "type": "string" }, |
|
0 commit comments