exist icon indicating copy to clipboard operation
exist copied to clipboard

[BUG] wrap and typed flags incorrectly mixed in serialization

Open adamretter opened this issue 2 months ago • 2 comments

Documentation says that the wrap flag when set to true:

causes the results of the query to be wrapped in an exist:result

However, for non-node types it is also incorrectly wrapping sequence values with type information.

Non-node types (and any other type) should only be wrapped in type information when the typed flag is set to true, as per the documentation:

causes the results of the query to be annotated with data type information

adamretter avatar Oct 14 '25 11:10 adamretter

It would really help to get some additional information on this issue.

  1. Where does this issue occur?
  2. What are the steps to reproduce it?

line-o avatar Oct 14 '25 12:10 line-o

@line-o As requested:

Where does this issue occur?

In the Serializer.

What are the steps to reproduce it?

Try and serialize any atomic types with variations for the values of the flags wrap and typed

adamretter avatar Oct 16 '25 11:10 adamretter