File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ func ToV3SchemaRef(schema *openapi2.SchemaRef) *openapi3.SchemaRef {
513
513
MaxProps : schema .Value .MaxProps ,
514
514
AllOf : make (openapi3.SchemaRefs , len (schema .Value .AllOf )),
515
515
Properties : make (openapi3.Schemas ),
516
- AdditionalProperties : ToV3AdditionalProperties (schema .Value .AdditionalProperties ),
516
+ AdditionalProperties : toV3AdditionalProperties (schema .Value .AdditionalProperties ),
517
517
}
518
518
519
519
if schema .Value .Discriminator != "" {
@@ -547,7 +547,7 @@ func ToV3SchemaRef(schema *openapi2.SchemaRef) *openapi3.SchemaRef {
547
547
}
548
548
}
549
549
550
- func ToV3AdditionalProperties (from openapi3.AdditionalProperties ) openapi3.AdditionalProperties {
550
+ func toV3AdditionalProperties (from openapi3.AdditionalProperties ) openapi3.AdditionalProperties {
551
551
return openapi3.AdditionalProperties {
552
552
Has : from .Has ,
553
553
Schema : convertRefsInV3SchemaRef (from .Schema ),
@@ -563,7 +563,7 @@ func convertRefsInV3SchemaRef(from *openapi3.SchemaRef) *openapi3.SchemaRef {
563
563
if to .Value != nil {
564
564
v := * from .Value
565
565
to .Value = & v
566
- to .Value .AdditionalProperties = ToV3AdditionalProperties (to .Value .AdditionalProperties )
566
+ to .Value .AdditionalProperties = toV3AdditionalProperties (to .Value .AdditionalProperties )
567
567
}
568
568
return & to
569
569
}
You can’t perform that action at this time.
0 commit comments