The codelist keyword should have a format of uri-reference, which is supported in JSON-Schema Validation 2020-12 as a validation format for strings, and is how the JSON Schema 2020-12 core metaschema defines the $ref keyword (among others).
This would allow current usage to remain valid, but explicitly define the URI resolution behaviour for the codelist file rather than rely on our idiosyncratic practices of having a sibling codelist/ directory, and has the benefit of being able to link to external CSV codelists via a full URI.
The
codelistkeyword should have a format ofuri-reference, which is supported in JSON-Schema Validation 2020-12 as a validation format for strings, and is how the JSON Schema 2020-12 core metaschema defines the$refkeyword (among others).#/$defs/uriReferenceStringwhich hasformat: uri-reference)This would allow current usage to remain valid, but explicitly define the URI resolution behaviour for the codelist file rather than rely on our idiosyncratic practices of having a sibling
codelist/directory, and has the benefit of being able to link to external CSV codelists via a full URI.