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 b6d68bb commit e6cc29cCopy full SHA for e6cc29c
src/Microsoft.OpenApi/Models/OpenApiRequestBody.cs
@@ -139,7 +139,7 @@ public IEnumerable<IOpenApiParameter> ConvertToFormDataParameters(IOpenApiWriter
139
// we have a copy of a reference but don't want to mutate the source schema
140
// TODO might need recursive resolution of references here
141
OpenApiSchemaReference r when r.Target is not null => (OpenApiSchema)r.Target.CreateShallowCopy(),
142
- OpenApiSchemaReference r2 when r2.Target is null => throw new InvalidOperationException("Unresolved reference target"),
+ OpenApiSchemaReference => throw new InvalidOperationException("Unresolved reference target"),
143
_ => throw new InvalidOperationException("Unexpected schema type")
144
};
145
0 commit comments