Skip to content

Commit 3f87777

Browse files
committed
Regenerate docs
1 parent e474495 commit 3f87777

File tree

4 files changed

+104
-1
lines changed

4 files changed

+104
-1
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
optionsClassName: ExportWorkItemMappingToolOptions
2+
optionsClassFullName: MigrationTools.Tools.ExportWorkItemMappingToolOptions
3+
configurationSamples:
4+
- name: defaults
5+
order: 2
6+
description:
7+
code: There are no defaults! Check the sample for options!
8+
sampleFor: MigrationTools.Tools.ExportWorkItemMappingToolOptions
9+
- name: sample
10+
order: 1
11+
description:
12+
code: There is no sample, but you can check the classic below for a general feel.
13+
sampleFor: MigrationTools.Tools.ExportWorkItemMappingToolOptions
14+
- name: classic
15+
order: 3
16+
description:
17+
code: >-
18+
{
19+
"$type": "ExportWorkItemMappingToolOptions",
20+
"Enabled": false,
21+
"TargetFile": "",
22+
"PreserveExisting": true
23+
}
24+
sampleFor: MigrationTools.Tools.ExportWorkItemMappingToolOptions
25+
description: >-
26+
Tool for exporting mappings of work item IDs from source to target.
27+
Work item migration processor uses this tool to record work item ID mappings.
28+
The mappings will be saved to file defined in options at the end of the migration.
29+
className: ExportWorkItemMappingTool
30+
typeName: Tools
31+
options:
32+
- parameterName: Enabled
33+
type: Boolean
34+
description: If set to `true` then the tool will run. Set to `false` and the processor will not run.
35+
defaultValue: true
36+
isRequired: false
37+
dotNetType: System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
38+
- parameterName: PreserveExisting
39+
type: Boolean
40+
description: >-
41+
Indicates whether existing mappings in the target file should be preserved when saving new mappings.
42+
Default value is `true`.
43+
defaultValue: true
44+
isRequired: false
45+
dotNetType: System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
46+
- parameterName: TargetFile
47+
type: String
48+
description: Path to file, where work item mapping will be saved.
49+
defaultValue: String.Empty
50+
isRequired: false
51+
dotNetType: System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
52+
status: missing XML code comments
53+
processingTarget: missing XML code comments
54+
classFile: src/MigrationTools/Tools/ExportWorkItemMappingTool.cs
55+
optionsClassFile: src/MigrationTools/Tools/ExportWorkItemMappingToolOptions.cs

docs/static/schema/configuration.schema.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,6 +1731,28 @@
17311731
"CommonTools": {
17321732
"type": "object",
17331733
"properties": {
1734+
"ExportWorkItemMappingTool": {
1735+
"title": "ExportWorkItemMappingTool",
1736+
"description": "Tool for exporting mappings of work item IDs from source to target.\r\n Work item migration processor uses this tool to record work item ID mappings.\r\n The mappings will be saved to file defined in options at the end of the migration.",
1737+
"type": "object",
1738+
"properties": {
1739+
"Enabled": {
1740+
"description": "If set to `true` then the tool will run. Set to `false` and the processor will not run.",
1741+
"type": "boolean",
1742+
"default": "true"
1743+
},
1744+
"PreserveExisting": {
1745+
"description": "Indicates whether existing mappings in the target file should be preserved when saving new mappings.\r\n Default value is `true`.",
1746+
"type": "boolean",
1747+
"default": "true"
1748+
},
1749+
"TargetFile": {
1750+
"description": "Path to file, where work item mapping will be saved.",
1751+
"type": "string",
1752+
"default": "String.Empty"
1753+
}
1754+
}
1755+
},
17341756
"FieldMappingTool": {
17351757
"title": "FieldMappingTool",
17361758
"description": "Tool for applying field mapping transformations to work items during migration, supporting various field mapping strategies like direct mapping, regex transformations, and value lookups.",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://devopsmigration.io/schema/schema.tools.exportworkitemmappingtool.json",
4+
"title": "ExportWorkItemMappingTool",
5+
"description": "Tool for exporting mappings of work item IDs from source to target.\r\n Work item migration processor uses this tool to record work item ID mappings.\r\n The mappings will be saved to file defined in options at the end of the migration.",
6+
"type": "object",
7+
"properties": {
8+
"Enabled": {
9+
"description": "If set to `true` then the tool will run. Set to `false` and the processor will not run.",
10+
"type": "boolean",
11+
"default": "true"
12+
},
13+
"PreserveExisting": {
14+
"description": "Indicates whether existing mappings in the target file should be preserved when saving new mappings.\r\n Default value is `true`.",
15+
"type": "boolean",
16+
"default": "true"
17+
},
18+
"TargetFile": {
19+
"description": "Path to file, where work item mapping will be saved.",
20+
"type": "string",
21+
"default": "String.Empty"
22+
}
23+
}
24+
}

src/MigrationTools/Tools/ExportWorkItemMappingToolOptions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ public ExportWorkItemMappingToolOptions()
1515
/// <summary>
1616
/// Path to file, where work item mapping will be saved.
1717
/// </summary>
18-
public string TargetFile { get; set; }
18+
/// <default>String.Empty</default>
19+
public string TargetFile { get; set; } = string.Empty;
1920

2021
/// <summary>
2122
/// Indicates whether existing mappings in the target file should be preserved when saving new mappings.
2223
/// Default value is <see langword="true"/>.
2324
/// </summary>
25+
/// <default>true</default>
2426
public bool PreserveExisting { get; set; } = true;
2527
}

0 commit comments

Comments
 (0)