Skip to content

Commit 9b8e16b

Browse files
committed
Add braces to the conditional statement
1 parent df65299 commit 9b8e16b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Models/OpenApiOperation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public void SerializeAsV2(IOpenApiWriter writer)
255255
{
256256
var paramName = property.Key;
257257
var paramSchema = property.Value;
258-
if (paramSchema.Type == "string" && paramSchema.Format == "binary" || paramSchema.Format == "base64") {
258+
if (paramSchema.Type == "string" && (paramSchema.Format == "binary" || paramSchema.Format == "base64")) {
259259
paramSchema.Type = "file";
260260
paramSchema.Format = null;
261261
}

0 commit comments

Comments
 (0)