Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

JSON schema corrections #286

Merged
merged 6 commits into from
Apr 7, 2014
Merged

JSON schema corrections #286

merged 6 commits into from
Apr 7, 2014

Conversation

philipashlock
Copy link
Contributor

Fixes a few things:

  1. Prevent schema from accepting null values for keyword which should always be required. Allowing it to be null was an oversight in the update on Update single_entry.json #269
  2. Make sure each entry in keyword is at least one character long (prevents empty strings)
  3. If distribution is used then ensure that both accessURL and format are included
  4. Defines regular expression pattern for PrimaryITInvestmentUII as mentioned in Valid example for PrimaryITInvestmentUII #283 and Use a valid example for PrimaryITInvestmentUII #282
  5. Adds accessURL and format as possible fields outside of distribution (but can be null)
  6. Made it so a keyword doesn't have to be unique as discussed in confirm whether duplicate keywords should break validation #288

@smrgeoinfo
Copy link
Contributor

Why is keyword mandatory—is that a DCAT thing? It doesn’t seem that is should be mandatory/not nilable.

@haleyvandyck
Copy link
Contributor

Thank you @philipashlock!

haleyvandyck pushed a commit that referenced this pull request Apr 7, 2014
@haleyvandyck haleyvandyck merged commit 8e03abc into project-open-data:master Apr 7, 2014
@gbinal
Copy link
Contributor

gbinal commented Apr 7, 2014

@smrazgs - it was a decision in the early days of the Project Open Data schema planning since it enables an important and fundamental aspect of organizing.

@smrgeoinfo
Copy link
Contributor

Only if there is a systematic and uniformly applied controlled vocabulary of keywords, otherwise a tag cloud generated from the titles and text descriptions is pretty much the same?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants