cph-cachet / carp.core-kotlin

Infrastructure-agnostic framework for distributed data collection.
https://carp.cachet.dk/core/
MIT License
20 stars 2 forks source link

Replace JSON pointer URI fragment with anchor references in JSON schemas #353

Open Whathecode opened 2 years ago

Whathecode commented 2 years ago

The json-schema-validator library we want to use for JSON schema validation does not yet support named anchor lookup for the metaschema we are using (draft 2019/09).

As a workaround, we currently use JSON pointer URIs within our schemas to point to these anchors.

The current locations are:

Once json-schema-validator provides support for this, we can upgrade and replace these references with named anchor references.

Whathecode commented 2 years ago

This works partially with a bugfix for json-schema-validator introduced in 1.0.67. All external references to anchors now use the anchor notation. However, internal anchor references still fail and currently thus still use the full path notation.