Skip to content

Commit 06b1c8d

Browse files
committed
fix: schema generation
1 parent 0da59cc commit 06b1c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Swashbuckle.WebApi.Server/Controllers/FileController.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type BinaryContentFilter() =
3131
let att = ctx.MethodInfo.GetCustomAttributes(typeof<BinaryContentAttribute>, false)
3232

3333
if att.Length > 0 then
34-
op.RequestBody <- OpenApiRequestBody(Required = true)
34+
op.RequestBody <- OpenApiRequestBody(Required = true, Content = System.Collections.Generic.Dictionary<string, OpenApiMediaType>())
3535

3636
op.RequestBody.Content.Add(
3737
MediaTypes.ApplicationOctetStream,

0 commit comments

Comments
 (0)