Ton Bosma created CAMEL-20746:
---------------------------------
Summary: Bean deserialisation from YAML displays message displays
wrong nodeType
Key: CAMEL-20746
URL: https://issues.apache.org/jira/browse/CAMEL-20746
Project: Camel
Issue Type: Bug
Components: camel-yaml-dsl
Affects Versions: 4.4.1
Environment: quarkusPlatformVersion=3.8.3
camel 4.4.1
Reporter: Ton Bosma
actual:
When deserializing a bean with a sequence (which is unfortunate not possible).
The error 'Unsupported type: MAPPING' is thrown.
expected:
When deserializing a bean with a sequence . The error 'Unsupported type:
SEQUENCE' is thrown.
cause:
In YamlDeserializerSupport at line 188 there is a switch on val.genNodeType,
val is the node with the type, the error is however thrown on the mapping node.
{code:java}
switch (val.getNodeType()) {
case SCALAR:
answer.put(StringHelper.dashToCamelCase(key), asText(val));
break;
case MAPPING:
answer.put(StringHelper.dashToCamelCase(key), asMap(val));
break;
default:
throw new UnsupportedNodeTypeException(node); // <- node should be
val{code}
I believe this error is not fixed on the main
--
This message was sent by Atlassian Jira
(v8.20.10#820010)