Skip to content

Commit 8fc9e2a

Browse files
committed
Add summary field to input file and verify tests still pass
1 parent 487194f commit 8fc9e2a

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

test/Microsoft.OpenApi.Readers.Tests/V3Tests/OpenApiInfoTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public void ParseAdvancedInfoShouldSucceed()
4141
new OpenApiInfo
4242
{
4343
Title = "Advanced Info",
44+
Summary = "Sample Summary",
4445
Description = "Sample Description",
4546
Version = "1.0.0",
4647
TermsOfService = new Uri("http://example.org/termsOfService"),
@@ -101,6 +102,7 @@ public void ParseBasicInfoShouldSucceed()
101102
new OpenApiInfo
102103
{
103104
Title = "Basic Info",
105+
Summary = "Sample Summary",
104106
Description = "Sample Description",
105107
Version = "1.0.1",
106108
TermsOfService = new Uri("http://swagger.io/terms/"),

test/Microsoft.OpenApi.Readers.Tests/V3Tests/Samples/OpenApiInfo/advancedInfo.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
title: Advanced Info
22
version: 1.0.0
3+
summary: Sample Summary
34
description: Sample Description
45
termsOfService: http://example.org/termsOfService
56
contact:

test/Microsoft.OpenApi.Readers.Tests/V3Tests/Samples/OpenApiInfo/basicInfo.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"title": "Basic Info",
3+
"summary": "Sample Summary",
34
"description": "Sample Description",
45
"termsOfService": "http://swagger.io/terms/",
56
"contact": {

0 commit comments

Comments
 (0)