<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Roger,<br>
      <br>
      Thank you very much for the feedback.<br>
      <br>
      We use a third-party library for JSON Schema validation and,
      unfortunately, it does not support the "$anchor" and
      "$dynamicAnchor" keywords. This is mentioned as a limitation in
      our <a
href="https://www.oxygenxml.com/doc/versions/25.1/ug-editor/topics/json-validating-json-schema.html#json-validating-json-schema__section_n4d_llf_y5b">user-guide</a>,
      but, indeed, the message displayed for "$anchor" is not accurate
      at all. <br>
    </p>
    We plan to provide full support for JSON Schema <i>Draft 2020-12</i>
    in the near future by using another library. I will let you know
    when this support is ready.<br>
    <br>
    Regards,<br>
    Florin
    <div class="moz-cite-prefix">On 6/22/2023 9:25 PM, Roger L Costello
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:365625031.01687458363745.JavaMail.alg@alg">
      <pre class="moz-quote-pre" wrap="">When I add "$anchor" to my JSON Schema, the Oxygen editor gives this error message:

        The keyword "$anchor" is not part of
        JSON Schema Draft 2020-12 specification.
        Therefore, it is ignored by the validation engine.

But that's not true. See section 8.2.2 of the 2020-12 specification (<a class="moz-txt-link-freetext" href="https://json-schema.org/draft/2020-12/json-schema-core.html#section-8.2.2">https://json-schema.org/draft/2020-12/json-schema-core.html#section-8.2.2</a>): 

Using JSON Pointer fragments requires knowledge of the structure of the schema. When writing schema documents with the intention to provide re-usable schemas, it may be preferable to use a plain name fragment that is not tied to any particular structural location. This allows a subschema to be relocated without requiring JSON Pointer references to be updated.

The "$anchor" and "$dynamicAnchor" keywords are used to specify such fragments. They are identifier keywords that can only be used to create plain name fragments, rather than absolute URIs as seen with "$id"...
_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>

</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Florin Nica
<oXygen/> XML Editor
<a class="moz-txt-link-abbreviated" href="http://www.oxygenxml.com">www.oxygenxml.com</a></pre>
  </body>
</html>