From 1302f6d22b6fd01bdb736bef6bea6854268a8b86 Mon Sep 17 00:00:00 2001 From: Leonardo Taglialegne Date: Tue, 7 Oct 2025 15:11:02 +0200 Subject: [PATCH] Work around small bug --- cli/src/Cli.elm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/Cli.elm b/cli/src/Cli.elm index 3edd567..d20f9c1 100644 --- a/cli/src/Cli.elm +++ b/cli/src/Cli.elm @@ -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 @@ -899,6 +899,7 @@ decodeMaybeYaml oasPath input = Ok decoded -> Ok decoded + Ok jsonFromYaml -> Ok jsonFromYaml