Skip to content
Closed
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
3 changes: 2 additions & 1 deletion cli/src/Cli.elm
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ decodeMaybeYaml oasPath input =
Ok jsonFromYaml

else
case Yaml.Decode.fromString yamlToJsonValueDecoder input of
case Yaml.Decode.fromString yamlToJsonValueDecoder (input++"\n") of
Err yamlError ->
-- If it errored out, it might be valid JSON that the yaml parser can't handle
case Json.Decode.decodeString Json.Value.decoder input of
Expand All @@ -899,6 +899,7 @@ decodeMaybeYaml oasPath input =
Ok decoded ->
Ok decoded


Ok jsonFromYaml ->
Ok jsonFromYaml

Expand Down