File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/Microsoft.OpenApi/Models Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- // Copyright (c) Microsoft Corporation. All rights reserved.
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT license.
3
3
4
4
using System . Collections . Generic ;
@@ -238,9 +238,12 @@ public void SerializeAsV3WithoutReference(IOpenApiWriter writer)
238
238
239
239
// allowEmptyValue
240
240
writer . WriteProperty ( OpenApiConstants . AllowEmptyValue , AllowEmptyValue , false ) ;
241
-
241
+
242
242
// style
243
- writer . WriteProperty ( OpenApiConstants . Style , Style ? . GetDisplayName ( ) ) ;
243
+ if ( _style . HasValue )
244
+ {
245
+ writer . WriteProperty ( OpenApiConstants . Style , Style . Value . GetDisplayName ( ) ) ;
246
+ }
244
247
245
248
// explode
246
249
writer . WriteProperty ( OpenApiConstants . Explode , Explode , Style . HasValue && Style . Value == ParameterStyle . Form ) ;
You can’t perform that action at this time.
0 commit comments