Skip to content

Questions re: TagValueProcessor behavior #544

@dopry

Description

@dopry

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions