Skip to content

Commit

Permalink
for now require a content-type header.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpoul committed Sep 1, 2024
1 parent c845700 commit c1e5c1b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,9 @@ class OpenApiLibraryGenerator {
..type = _openApiContentType
..name = 'contentType'
..toThis = true));
clientResponseParseParams.add(
refer('response').property('responseContentType')([]));
clientResponseParseParams.add(refer('response')
.property('responseContentType')([])
.nullChecked);
}
cb.requiredParameters.add(Parameter((pb) => pb
..name = 'body'
Expand Down

0 comments on commit c1e5c1b

Please sign in to comment.