Skip to content

Commit

Permalink
Make static fields readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieKimani1 committed Oct 24, 2023
1 parent 7629765 commit 67ce8f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class OpenApiSchemaTests
{
public static OpenApiSchema BasicSchema = new();

public static OpenApiSchema AdvancedSchemaNumber = new()
public static readonly OpenApiSchema AdvancedSchemaNumber = new()
{
Title = "title1",
MultipleOf = 3,
Expand All @@ -42,7 +42,7 @@ public class OpenApiSchemaTests
}
};

public static OpenApiSchema AdvancedSchemaObject = new()
public static readonly OpenApiSchema AdvancedSchemaObject = new()
{
Title = "title1",
Properties = new Dictionary<string, OpenApiSchema>
Expand Down Expand Up @@ -91,7 +91,7 @@ public class OpenApiSchemaTests
}
};

public static OpenApiSchema AdvancedSchemaWithAllOf = new()
public static readonly OpenApiSchema AdvancedSchemaWithAllOf = new()
{
Title = "title1",
AllOf = new List<OpenApiSchema>
Expand Down Expand Up @@ -143,7 +143,7 @@ public class OpenApiSchemaTests
}
};

public static OpenApiSchema ReferencedSchema = new()
public static readonly OpenApiSchema ReferencedSchema = new()
{
Title = "title1",
MultipleOf = 3,
Expand All @@ -166,7 +166,7 @@ public class OpenApiSchemaTests
}
};

public static OpenApiSchema AdvancedSchemaWithRequiredPropertiesObject = new()
public static readonly OpenApiSchema AdvancedSchemaWithRequiredPropertiesObject = new()
{
Title = "title1",
Required = new HashSet<string> { "property1" },
Expand Down

0 comments on commit 67ce8f4

Please sign in to comment.