File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/Microsoft.OpenApi/Models Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -149,13 +149,11 @@ public OpenApiReference(OpenApiReference reference)
149
149
/// </summary>
150
150
public void SerializeAsV31 ( IOpenApiWriter writer )
151
151
{
152
- SerializeInternal ( writer ) ;
153
-
154
152
// summary and description are in 3.1 but not in 3.0
155
153
writer . WriteProperty ( OpenApiConstants . Summary , Summary ) ;
156
154
writer . WriteProperty ( OpenApiConstants . Description , Description ) ;
157
-
158
- writer . WriteEndObject ( ) ;
155
+
156
+ SerializeInternal ( writer ) ;
159
157
}
160
158
161
159
/// <summary>
@@ -164,7 +162,6 @@ public void SerializeAsV31(IOpenApiWriter writer)
164
162
public void SerializeAsV3 ( IOpenApiWriter writer )
165
163
{
166
164
SerializeInternal ( writer ) ;
167
- writer . WriteEndObject ( ) ;
168
165
}
169
166
170
167
/// <summary>
@@ -192,6 +189,8 @@ private void SerializeInternal(IOpenApiWriter writer)
192
189
193
190
// $ref
194
191
writer . WriteProperty ( OpenApiConstants . DollarRef , ReferenceV3 ) ;
192
+
193
+ writer . WriteEndObject ( ) ;
195
194
}
196
195
197
196
/// <summary>
You can’t perform that action at this time.
0 commit comments