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

Tests p:validate-with-json-schema: Error raised because document on port "schema" is no valid JSON schema.

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-not-a-json-schema"}}
               </p:inline>
      </p:with-input>
   </p:validate-with-json-schema>
</p:declare-step>
MorganaXProc passing XML Calabash failing

Revision history

04 Sep 2022, Achim Berndzen

Initial commit