Skip to content

Commit 7cf184a

Browse files
Deprecate some obsolete fields. (SchemaStore#4760)
* Deprecate some obsolete fields. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Appease strict mode. * Whoops. * Simplify not() rule. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e9a79e0 commit 7cf184a

File tree

1 file changed

+24
-52
lines changed

1 file changed

+24
-52
lines changed

src/schemas/json/sigrid-scope-file.schema.json

Lines changed: 24 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,22 @@
218218
"architecture_patterns": {
219219
"type": "array",
220220
"items": {
221-
"type": "object"
221+
"$ref": "#/definitions/architecture_pattern"
222222
}
223+
},
224+
"architecture_pattern": {
225+
"type": "object",
226+
"properties": {
227+
"description": {
228+
"type": "string"
229+
}
230+
},
231+
"required": ["description"],
232+
"additionalProperties": true
233+
},
234+
"dependency_checker_source": {
235+
"type": "string",
236+
"enum": ["all", "sbom"]
223237
}
224238
},
225239

@@ -257,25 +271,6 @@
257271
"description": "SIG Maintainability Model that should be used for the analysis, defaults to latest."
258272
},
259273

260-
"alerts": {
261-
"type": "object",
262-
"properties": {
263-
"enabled": {
264-
"type": "boolean",
265-
"description": "When true, will send alert email notifications when noteworthy events happen."
266-
},
267-
"recipients": {
268-
"type": "array",
269-
"items": {
270-
"type": "string",
271-
"format": "email"
272-
},
273-
"description": "List of email addresses that should receive alerts."
274-
}
275-
},
276-
"additionalProperties": false
277-
},
278-
279274
"dependencychecker": {
280275
"type": "object",
281276
"properties": {
@@ -369,37 +364,13 @@
369364
"type": "string"
370365
},
371366
"description": "List of technologies for which the analysis should be disabled."
372-
}
373-
},
374-
"additionalProperties": false,
375-
"required": []
376-
},
377-
378-
"checkmarx": {
379-
"type": "object",
380-
"properties": {
381-
"enabled": {
382-
"type": "boolean",
383-
"description": "Indicates that this system should be scanned for vulnerabilities using Checkmarx."
384-
},
385-
"id": {
386-
"anyOf": [
387-
{
388-
"type": "integer"
389-
},
390-
{
391-
"type": "string"
392-
}
393-
],
394-
"description": "Unique ID to identify the Checkmarx project."
395367
},
396-
"username": {
397-
"type": "string",
398-
"description": "Your Checkmarx username."
368+
"source": {
369+
"$ref": "#/definitions/dependency_checker_source"
399370
}
400371
},
401372
"additionalProperties": false,
402-
"required": ["enabled", "id"]
373+
"required": []
403374
},
404375

405376
"architecture": {
@@ -419,7 +390,7 @@
419390
},
420391
"custom_components": {
421392
"type": "boolean",
422-
"description": "Overrides automatic component detection with components defined manually in scope file."
393+
"description": "Deprecated. This option is obsolete."
423394
},
424395
"file_annotation_components": {
425396
"type": "boolean",
@@ -466,7 +437,7 @@
466437
},
467438
"history_enabled": {
468439
"type": "boolean",
469-
"description": "Deprecated, this is now detected automatically."
440+
"description": "Deprecated. This option is obsolete."
470441
},
471442
"history": {
472443
"anyOf": [
@@ -477,7 +448,7 @@
477448
"type": "string"
478449
}
479450
],
480-
"description": "Deprecated, this is now detected automatically."
451+
"description": "Deprecated. This option is obsolete."
481452
},
482453
"history_period_months": {
483454
"type": "integer",
@@ -501,7 +472,7 @@
501472
},
502473
"branch": {
503474
"$ref": "#/definitions/branches",
504-
"description": "Repository branch to use, comma-separated for multiple branches. Defaults to current branch."
475+
"description": "Deprecated. This option is obsolete."
505476
},
506477
"duplication": {
507478
"type": "boolean",
@@ -567,7 +538,8 @@
567538
},
568539
"additionalProperties": false,
569540
"required": []
570-
}
541+
},
542+
"checkmarx": false
571543
},
572544
"required": ["languages"],
573545
"title": "Sigrid scope configuration file",

0 commit comments

Comments
 (0)