As a user I want to have the possibility to ignore empty lines if the CSV message body only contains header values and no lines. Currently an error occurs if I enable to use the first line in the CSV as header and there are no lines.
We could also decide to set ignoreEmptyLines standard on true (opinionated) and do not add a new option to the component.
The output could be as follows:
<?xml version="1.0" encoding="UTF-8"?>
<items/>
or in the case where there are new lines below the header line in the CSV
<?xml version="1.0" encoding="UTF-8"?>
<items>
<item>
<ID/>
<Name/>
<Number/>
</item>
</items>
Jira: https://dovetailworld.atlassian.net/browse/FG-2630
As a user I want to have the possibility to ignore empty lines if the CSV message body only contains header values and no lines. Currently an error occurs if I enable to use the first line in the CSV as header and there are no lines.
We could also decide to set ignoreEmptyLines standard on true (opinionated) and do not add a new option to the component.
The output could be as follows:
or in the case where there are new lines below the header line in the CSV
Jira: https://dovetailworld.atlassian.net/browse/FG-2630