Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/OpenApi/Generate.elm
Original file line number Diff line number Diff line change
Expand Up @@ -1889,9 +1889,12 @@ contentToContentSchema content =
let
fallback : CliMonad ContentSchema
fallback =
CliMonad.succeed
(BytesContent singleKey)
|> CliMonad.withWarning ("Unrecognized mime type: " ++ singleKey ++ ", treating it as bytes")
if singleKey == "application/octet-stream" then
CliMonad.succeed (BytesContent singleKey)

else
CliMonad.succeed (BytesContent singleKey)
|> CliMonad.withWarning ("Unrecognized mime type: " ++ singleKey ++ ", treating it as bytes")
in
case
singleValue
Expand Down
Loading