From d6bb392be88552510e5e9226d8a7f31b3ecfeb86 Mon Sep 17 00:00:00 2001 From: Richard Webb Date: Mon, 9 Feb 2026 19:57:32 +0000 Subject: [PATCH] Set the "Accept" request header to the specified type, rathern than always ApplicationJson --- src/SwaggerProvider.DesignTime/v3/OperationCompiler.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SwaggerProvider.DesignTime/v3/OperationCompiler.fs b/src/SwaggerProvider.DesignTime/v3/OperationCompiler.fs index f7dfa8f..4fc643a 100644 --- a/src/SwaggerProvider.DesignTime/v3/OperationCompiler.fs +++ b/src/SwaggerProvider.DesignTime/v3/OperationCompiler.fs @@ -252,7 +252,7 @@ type OperationCompiler(schema: OpenApiDocument, defCompiler: DefinitionCompiler, [ if not(isNull payloadMime) then "Content-Type", payloadMime if not(isNull retMime) then - "Accept", MediaTypes.ApplicationJson ] + "Accept", retMime ] @> // Locates parameters matching the arguments