p:validate-with-json-schema 009 (AB)

Tests p:validate-with-json-schema: Error should be raised because the request schema version is not supported.

Test ab-validate-with-json-schema-009.xml is expected to fail with error code err:XC0163.

It requires the following features: p-validate-with-json-schema.

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:validate-with-json-schema>
      <p:with-input href="../documents/valid.json"/>
      <p:with-input port="schema">
         <p:inline content-type="application/json">
                  {{"$schema": "https://this-is-an-unsupported-schema-version"}}
               </p:inline>
      </p:with-input>
   </p:validate-with-json-schema>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

02 Nov 2024, Achim Berndzen

Clarifying test's point.

04 Sep 2022, Achim Berndzen

Initial commit