JSON join 007(AB)

Tests p:JSON-join/@flatten-to-depth is handled correctly: Only positive int or 'unbounded' allowed.

Test ab-json-join-007.xml is expected to fail with error code err:XC0119.

The pipeline


<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
   <p:output port="result"/>
   <p:json-join flatten-to-depth="-42">
      <p:with-input>
         <p:inline content-type="application/json">[ "A", 1]</p:inline>
         <p:inline content-type="application/json">"B"</p:inline>
         <p:inline content-type="application/json">[42, ["D", true]]</p:inline>
      </p:with-input>
   </p:json-join>
   <p:cast-content-type content-type="application/xml"/>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

14 Dec 2019, Achim Berndzen

Changed error code to XC0119

06 Sep 2019, Achim Berndzen

Added tests for p:json-join