-
Bug
-
Resolution: Won't Do
-
Major
-
camel-quarkus-2.2-GA
-
None
-
False
-
None
-
False
-
%
-
Todo
-
Given the following XML input data shape:
<Products> <item id="i-001">3</item> <item id="i-002">10</item> </Products>
And given the following target data shape:
{"items": [ { "id": "i-001", "quantity": 3 }, { "id": "i-002", "quantity": 10 } ]}
AtlasMap will succeed to map the collection if only the item's XML value is mapped, but fails when the attribute is also mapped.
The expectation is that AtlasMap succeeds to map the XML collection, mapping the XML id attribute into the JSON id field, and mapping the XML item's value to the JSON quantity field.