I have an input schema that contains a list of phone numbers with a phone number type which looks as follows:
<phoneNumbers>
<phoneNumber type="work">...</phoneNumber>
<phoneNumber type="home">...</phoneNumber>
</phoneNumbers>
I only want to map a specific type of number, let's say 'work'. If a 'work' type phone number isn't available I need to fill in a default value.
This is what I start with:
The problem I run into is that I can't get the default value to appear in the output if there is no 'work' phone number present.