Skip to content

Commit 30ad539

Browse files
committed
Update setters appropriately
1 parent 7b15e3e commit 30ad539

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Microsoft.OpenApi/Services/OpenApiUrlSpaceNode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ public class OpenApiUrlSpaceNode
1818
/// <summary>
1919
/// All the subdirectories of a node.
2020
/// </summary>
21-
public IDictionary<string, OpenApiUrlSpaceNode> Children { get; set; } = new Dictionary<string, OpenApiUrlSpaceNode>();
21+
public IDictionary<string, OpenApiUrlSpaceNode> Children { get; } = new Dictionary<string, OpenApiUrlSpaceNode>();
2222

2323
/// <summary>
2424
/// The name tag for a group of nodes.
2525
/// </summary>
26-
public string Label { get; set; }
26+
public string Label { get; private set; }
2727

2828
/// <summary>
2929
/// Path Item object that describes the operations available on a node.
@@ -33,7 +33,7 @@ public class OpenApiUrlSpaceNode
3333
/// <summary>
3434
/// The relative directory path of the current node from the root node.
3535
/// </summary>
36-
public string Path { get; set; } = "";
36+
public string Path { get; private set; } = "";
3737

3838
/// <summary>
3939
/// Flag indicating whether a node segment is a path parameter.

0 commit comments

Comments
 (0)