3
3
4
4
using System ;
5
5
using System . Collections . Generic ;
6
- using Microsoft . OpenApi . Any ;
7
6
using Microsoft . OpenApi . Interfaces ;
8
7
using Microsoft . OpenApi . Writers ;
9
8
@@ -19,11 +18,16 @@ public class OpenApiInfo : IOpenApiSerializable, IOpenApiExtensible
19
18
/// </summary>
20
19
public string Title { get ; set ; }
21
20
21
+ /// <summary>
22
+ /// A short summary of the API.
23
+ /// </summary>
24
+ public string Summary { get ; set ; }
25
+
22
26
/// <summary>
23
27
/// A short description of the application.
24
28
/// </summary>
25
29
public string Description { get ; set ; }
26
-
30
+
27
31
/// <summary>
28
32
/// REQUIRED. The version of the OpenAPI document.
29
33
/// </summary>
@@ -60,6 +64,7 @@ public OpenApiInfo() {}
60
64
public OpenApiInfo ( OpenApiInfo info )
61
65
{
62
66
Title = info ? . Title ?? Title ;
67
+ Summary = info ? . Summary ?? Summary ;
63
68
Description = info ? . Description ?? Description ;
64
69
Version = info ? . Version ?? Version ;
65
70
TermsOfService = info ? . TermsOfService ?? TermsOfService ;
@@ -83,6 +88,9 @@ public void SerializeAsV3(IOpenApiWriter writer)
83
88
// title
84
89
writer . WriteProperty ( OpenApiConstants . Title , Title ) ;
85
90
91
+ // summary
92
+ writer . WriteProperty ( OpenApiConstants . Summary , Summary ) ;
93
+
86
94
// description
87
95
writer . WriteProperty ( OpenApiConstants . Description , Description ) ;
88
96
0 commit comments