I was wondering about the if tag value is empty then tagValueProcessor will not be called. specification for the TagValueProcessor
I have the following scenarios
empty result
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><response status="Ok"><links/></response>
{ response: { links: '', '@_status': 'Ok' }}
populated result
<response status="Ok"><links>
<link id="1234567" hint="1 Street Street" linkDescription="..." link="/property/1234567" />
<link id="1234568" hint="2 Street Street" linkDescription="..." link="/property/1234568" />
</links></response>
{ response: { links: { link: [Array] }, '@_status': 'Ok' } }
In this scenario I'd like to be able to overwrite the value of an empty links property to { link: [] } so that I have a consistent interface for my client code that consumes this API. Unfortunately since empty values are never pass to the tagValueProcessor I cannot do this.
Would you be open to an update that allows passing the value of empty nodes through the tagValueProcessor to support my feature request?
I was wondering about the
if tag value is empty then tagValueProcessor will not be called.specification for the TagValueProcessorI have the following scenarios
empty result
populated result
In this scenario I'd like to be able to overwrite the value of an empty links property to { link: [] } so that I have a consistent interface for my client code that consumes this API. Unfortunately since empty values are never pass to the tagValueProcessor I cannot do this.
Would you be open to an update that allows passing the value of empty nodes through the tagValueProcessor to support my feature request?