File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
src/Microsoft.OpenApi/Models Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ public OpenApiParameter(OpenApiParameter parameter)
163
163
Style = parameter ? . Style ?? Style ;
164
164
Explode = parameter ? . Explode ?? Explode ;
165
165
AllowReserved = parameter ? . AllowReserved ?? AllowReserved ;
166
- Schema = InitializeSchema ( ) ;
166
+ Schema = JsonNodeCloneHelper . CloneJsonSchema ( parameter ? . Schema ) ;
167
167
Examples = parameter ? . Examples != null ? new Dictionary < string , OpenApiExample > ( parameter . Examples ) : null ;
168
168
Example = JsonNodeCloneHelper . Clone ( parameter ? . Example ) ;
169
169
Content = parameter ? . Content != null ? new Dictionary < string , OpenApiMediaType > ( parameter . Content ) : null ;
@@ -447,15 +447,6 @@ public void SerializeAsV2WithoutReference(IOpenApiWriter writer)
447
447
448
448
return Style ;
449
449
}
450
-
451
- /// <summary>
452
- /// Clones an instance of a JSON schema
453
- /// </summary>
454
- /// <returns></returns>
455
- protected JsonSchema InitializeSchema ( )
456
- {
457
- return JsonNodeCloneHelper . CloneJsonSchema ( Schema ) ;
458
- }
459
450
}
460
451
461
452
/// <summary>
You can’t perform that action at this time.
0 commit comments