Skip to content

Commit

Permalink
Use the setting passed as the default content type if global and loca…
Browse files Browse the repository at this point in the history
…l produces are missing
  • Loading branch information
MaggieKimani1 committed Sep 26, 2023
1 parent 73c11c5 commit 0720231
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private static void ProcessProduces(MapNode mapNode, OpenApiResponse response, P

var produces = context.GetFromTempStorage<List<string>>(TempStorageKeys.OperationProduces)
?? context.GetFromTempStorage<List<string>>(TempStorageKeys.GlobalProduces)
?? new List<string> { "application/octet-stream" };
?? context.DefaultContentType ?? new List<string> { "application/octet-stream" };

var schema = context.GetFromTempStorage<OpenApiSchema>(TempStorageKeys.ResponseSchema, response);

Expand Down

0 comments on commit 0720231

Please sign in to comment.