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 24222f6 commit 734ee71Copy full SHA for 734ee71
src/Microsoft.OpenApi/Models/OpenApiParameter.cs
@@ -259,7 +259,7 @@ public void SerializeAsV2WithoutReference(IOpenApiWriter writer)
259
}
260
// In V2 parameter's type can't be a reference to a custom object schema or can't be of type object
261
// So in that case map the type as string.
262
- else if (Schema?.Reference?.Type == ReferenceType.Schema || Schema?.Type == "object")
+ else if (Schema?.UnresolvedReference == false || Schema?.Type == "object")
263
{
264
writer.WriteProperty(OpenApiConstants.Type, "string");
265
0 commit comments