The order is very important for some combination of directives, and to me there is no logical reason to reverse the order here. Feel free to let me know, if this was not implemented this way by accident, but for some specific reason, where putting array elements of the following output to the front. Maybe instead of changing the mergeInstances function, one could also just switch the argument order in SingleResponseOutputTemplateConverterStrategy.
Types of Changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[x] My code follows the code style of this project
[ ] My change requires a change to the documentation
Proposed Changes
Taking this code snippet in a handler:
Currently leads to the directive with value 2 to be placed first in the resulting alexa response:
The order is very important for some combination of directives, and to me there is no logical reason to reverse the order here. Feel free to let me know, if this was not implemented this way by accident, but for some specific reason, where putting array elements of the following output to the front. Maybe instead of changing the
mergeInstances
function, one could also just switch the argument order inSingleResponseOutputTemplateConverterStrategy
.Types of Changes
Checklist