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 be6a700 commit 544d0baCopy full SHA for 544d0ba
src/Microsoft.OpenApi/Models/OpenApiOperation.cs
@@ -228,6 +228,12 @@ public void SerializeAsV2(IOpenApiWriter writer)
228
{
229
foreach (var property in RequestBody.Content.First().Value.Schema.Properties)
230
231
+ var paramName = property.Key;
232
+ var paramSchema = property.Value;
233
+ if (paramSchema.Type == "string" && paramSchema.Format == "binary") {
234
+ paramSchema.Type = "file";
235
+ paramSchema.Format = null;
236
+ }
237
parameters.Add(
238
new OpenApiFormDataParameter
239
0 commit comments