Skip to content

Commit

Permalink
Fix JSON to XML mapping property types
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaksn committed Nov 29, 2023
1 parent f1a038e commit 977349e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private static string GetTypeName(KeyValuePair<string, OpenApiSchema> parameterI
referenceType = parameter.Items.Reference.ReferenceV3;
}

if (string.IsNullOrEmpty(parameter?.Type) && !string.IsNullOrEmpty(parameter?.Reference.ReferenceV3))
if ((string.IsNullOrEmpty(parameter?.Type) || parameter?.Type == "object") && !string.IsNullOrEmpty(parameter?.Reference.ReferenceV3))
{
referenceType = parameter.Reference.ReferenceV3;
}
Expand Down

0 comments on commit 977349e

Please sign in to comment.