We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf41aec commit d6d182cCopy full SHA for d6d182c
openapi2conv/openapi2_conv.go
@@ -483,14 +483,8 @@ func ToV3SchemaRef(schema *openapi2.SchemaRef) *openapi3.SchemaRef {
483
}
484
485
486
- // Copy schema.Value.Extensions to avoid modifying the original
487
- schemaExtensions := make(map[string]interface{})
488
- for k, v := range schema.Value.Extensions {
489
- schemaExtensions[k] = v
490
- }
491
-
492
v3Schema := &openapi3.Schema{
493
- Extensions: schemaExtensions,
+ Extensions: schema.Value.Extensions,
494
Type: schema.Value.Type,
495
Title: schema.Value.Title,
496
Format: schema.Value.Format,
0 commit comments