Skip to content

Commit df65299

Browse files
committed
Cater for file content transferred with base64 encoding
1 parent c1b173e commit df65299

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") {
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)