mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
fix(core): fix parsing of json input type as for yaml
This commit is contained in:
committed by
Loïc Mathieu
parent
3f8dcb47fd
commit
4ea13e258b
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user