Skip to content

Commit e6cc29c

Browse files
Update src/Microsoft.OpenApi/Models/OpenApiRequestBody.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent b6d68bb commit e6cc29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Models/OpenApiRequestBody.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public IEnumerable<IOpenApiParameter> ConvertToFormDataParameters(IOpenApiWriter
139139
// we have a copy of a reference but don't want to mutate the source schema
140140
// TODO might need recursive resolution of references here
141141
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"),
142+
OpenApiSchemaReference => throw new InvalidOperationException("Unresolved reference target"),
143143
_ => throw new InvalidOperationException("Unexpected schema type")
144144
};
145145

0 commit comments

Comments
 (0)