Skip to content

Boolean type based on existence  #232

@hellcp

Description

@hellcp

Some APIs define the true/false state based on existence of the node.

So for example:

<root>
  <option/>
</root>

would evaluate option to be true
while:

<root>
</root>

would evaluate option to be false (or nil, in any case falsy).

This can't be done with the current Boolean type, and implementing it on top would break the compatibility, so it would need to be a new type.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions