Skip to content

Commit 07d66aa

Browse files
committed
Update property ordering
1 parent f2f866a commit 07d66aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Microsoft.OpenApi.Tests/Models/OpenApiInfoTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ public void SerializeInfoObjectWithSummaryAsV31YamlWorks()
210210
{
211211
// Arrange
212212
var expected = @"title: Sample Pet Store App
213-
summary: This is a sample server for a pet store.
214213
description: This is a sample server for a pet store.
215-
version: '1.1.1'";
214+
version: '1.1.1'
215+
summary: This is a sample server for a pet store.";
216216

217217
// Act
218218
var actual = InfoWithSummary.SerializeAsYaml(OpenApiSpecVersion.OpenApi3_1);
@@ -229,9 +229,9 @@ public void SerializeInfoObjectWithSummaryAsV31JsonWorks()
229229
// Arrange
230230
var expected = @"{
231231
""title"": ""Sample Pet Store App"",
232-
""summary"": ""This is a sample server for a pet store."",
233232
""description"": ""This is a sample server for a pet store."",
234-
""version"": ""1.1.1""
233+
""version"": ""1.1.1"",
234+
""summary"": ""This is a sample server for a pet store.""
235235
}";
236236

237237
// Act

0 commit comments

Comments
 (0)