From 67ce8f427636497f90c9f298b399f858878a81e4 Mon Sep 17 00:00:00 2001 From: Maggie Kimani Date: Tue, 24 Oct 2023 16:44:56 +0300 Subject: [PATCH] Make static fields readonly --- .../Models/OpenApiSchemaTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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" },