Skip to content

Commit dd65750

Browse files
Support new component_roles field in Sigrid configuration file. (SchemaStore#4839)
* Support new component_roles field in Sigrid configuration file. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 14991d2 commit dd65750

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,28 @@
215215
"$ref": "#/definitions/architecture_group"
216216
}
217217
},
218+
"architecture_component_role": {
219+
"type": "object",
220+
"properties": {
221+
"role": {
222+
"type": "string"
223+
},
224+
"include": {
225+
"$ref": "#/definitions/file_pattern_list"
226+
},
227+
"exclude": {
228+
"$ref": "#/definitions/file_pattern_list"
229+
}
230+
},
231+
"required": ["role", "include"],
232+
"additionalProperties": false
233+
},
234+
"architecture_component_role_list": {
235+
"type": "array",
236+
"items": {
237+
"$ref": "#/definitions/architecture_component_role"
238+
}
239+
},
218240
"architecture_patterns": {
219241
"type": "array",
220242
"items": {
@@ -435,6 +457,10 @@
435457
"$ref": "#/definitions/architecture_group_list",
436458
"description": "Annotate all top-level components matching the pattern, in order to divide them into logical groups."
437459
},
460+
"component_roles": {
461+
"$ref": "#/definitions/architecture_component_role_list",
462+
"description": "Attaches role labels to all matching components, describing their role in the architecture."
463+
},
438464
"history_enabled": {
439465
"type": "boolean",
440466
"description": "Deprecated. This option is obsolete."

0 commit comments

Comments
 (0)