diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.cs index 6659d3a42..c4a9ddd53 100644 --- a/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.cs +++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.cs @@ -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, @@ -42,7 +42,7 @@ public class OpenApiSchemaTests } }; - public static OpenApiSchema AdvancedSchemaObject = new() + public static readonly OpenApiSchema AdvancedSchemaObject = new() { Title = "title1", Properties = new Dictionary @@ -91,7 +91,7 @@ public class OpenApiSchemaTests } }; - public static OpenApiSchema AdvancedSchemaWithAllOf = new() + public static readonly OpenApiSchema AdvancedSchemaWithAllOf = new() { Title = "title1", AllOf = new List @@ -143,7 +143,7 @@ public class OpenApiSchemaTests } }; - public static OpenApiSchema ReferencedSchema = new() + public static readonly OpenApiSchema ReferencedSchema = new() { Title = "title1", MultipleOf = 3, @@ -166,7 +166,7 @@ public class OpenApiSchemaTests } }; - public static OpenApiSchema AdvancedSchemaWithRequiredPropertiesObject = new() + public static readonly OpenApiSchema AdvancedSchemaWithRequiredPropertiesObject = new() { Title = "title1", Required = new HashSet { "property1" },