Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

JSON Schema $ref use issue #366

Closed
Relequestual opened this issue Oct 22, 2021 · 1 comment
Closed

JSON Schema $ref use issue #366

Relequestual opened this issue Oct 22, 2021 · 1 comment

Comments

@Relequestual
Copy link

The below extract is from a JSON Schema in this repo.

"items":{
"$ref":"single_entry.json",
"minItems": 1,
"uniqueItems": true
}

The JSON Schema uses "draft-04".
In draft-04, when $ref is used, all other keywords MUST ("SHALL") be ignored.

https://datatracker.ietf.org/doc/html/draft-pbryan-zyp-json-ref-03#section-3

Any members other than "$ref" in a JSON Reference object SHALL be
ignored.

We (JSON Schema) later bundled the separate JSON Ref specification into the JSON Schema specification.

As of draft 2019-09, $ref can be used alongside other keywords without this adverse effect, however this schema and many others in this repo use draft-04, and so may have instances validate successfully unexpectidly.

@mogul
Copy link
Contributor

mogul commented Oct 29, 2021

Thanks so much for reaching out to us! As it turns out, we're on the cusp of replacing this dashboard with reporting that's more native to CKAN, so we won't be fixing this issue here.

@mogul mogul closed this as completed Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants