fix(core): fix parsing of json input type as for yaml

This commit is contained in:
mustafatarek
2025-12-08 14:38:28 +02:00
committed by Loïc Mathieu
parent 3f8dcb47fd
commit 4ea13e258b

View File

@@ -498,7 +498,7 @@ public class FlowInputOutput {
yield storageInterface.from(execution, id, current.toString().substring(current.toString().lastIndexOf("/") + 1), new File(current.toString()));
}
}
case JSON -> JacksonMapper.toObject(current.toString());
case JSON -> current instanceof Map ? current : JacksonMapper.toObject(current.toString());
case YAML -> current instanceof Map ? current : YAML_MAPPER.readValue(current.toString(), JacksonMapper.OBJECT_TYPE_REFERENCE);
case URI -> {
Matcher matcher = URI_PATTERN.matcher(current.toString());