one-data-model / language

(Old repo:) Simple Definition Format (SDF) for One Data Model definitions
7 stars 4 forks source link

SDF Pointer formats #90

Open mjkoster opened 4 years ago

mjkoster commented 4 years ago

The pointer format "#/odmData/TemperatureData" doesn't validate as a JSON pointer. This is a uri-reference that starts with a fragment identifier. We need to update the sdf-schema to allow sdf-pointers to be uri-references.

We also need to allow the namespace prefix format in the JSON level validation.

This relates to another issue https://github.com/one-data-model/language/issues/85 where we propose to only allow URI format pointers (i.e. no relative JSON pointers) as sdf-pointers

mjkoster commented 4 years ago

Created https://github.com/one-data-model/language/pull/91

Validates SDF pointers against the JSON schema format uri-reference

relative JSON pointers also validate, so we still need to make a rule about these.

Also still need to accommodate CURIE prefix notation (it does validate as a uri-reference so the proposed schema in the PR is OK)