Skip to content
This repository was archived by the owner on Sep 6, 2019. It is now read-only.

Example data.json file #7

Closed
acouch opened this issue Jun 13, 2013 · 8 comments · Fixed by #9
Closed

Example data.json file #7

acouch opened this issue Jun 13, 2013 · 8 comments · Fixed by #9

Comments

@acouch
Copy link

acouch commented Jun 13, 2013

Is there an example data.json file that you can provide. I can't seem to find an example that passes the validator on any existing ckan instances or data.gov?

@waldoj
Copy link
Contributor

waldoj commented Jun 15, 2013

@acouch
Copy link
Author

acouch commented Jun 17, 2013

Thanks. This is a really fabulous effort btw.

If I copy and paste http://project-open-data.github.io/examples/catalog-template.json into the validator I get "The ‘[0].dataDictionary’ property is required. :(" . Is that a problem with the validator or the file or my use of the validator?

@waldoj
Copy link
Contributor

waldoj commented Jun 17, 2013

D'oh! Paging @benbalter. :) I'm sure it's nothing you're doing wrong, @acouch. I'd scrub in on this, but I have virtually no experience with the validator—I suspect that Ben can quickly answer something that might require the two of us digging around for a while.

@benbalter
Copy link
Contributor

It looks like the machine-readable schema the validator references is seven months stale.

If @gbinal or others could crosswalk that schema with the human-readable version, glad to recompile the coffeescript, and then things should be ✨ again.

@acouch
Copy link
Author

acouch commented Jul 18, 2013

So it looks like someone just needs to update the validator references. I will try and take a swipe at that this weekend.

EDIT: It appears that this pull request #6 addresses this issue. See: willpugh@292fd2e

Can the maintainers please take a look at that? We're implementing data.json in DKAN and would love to have a working validator.

@ba66e77
Copy link

ba66e77 commented Aug 28, 2013

+1 on the need to get this resolved. We're also writing a data.json on Drupal's Open Data module and would love to be able to rely on the validator as we're working.

@benbalter
Copy link
Contributor

Merged in #6, which should put us down the right path.

If this is still out of sync with the true schema, would just be a matter of editing https://github.com/project-open-data/json-validator/blob/gh-pages/js/schema.coffee, which can even be done via the web browser.

@drrwebber
Copy link

BTW - for Java based JSON validation services - check out the CAMV toolset on SourceForge - http://www.cameditor.org and the quick tutorial on YouTube here: http://www.youtube.com/watch?v=K7-JlYGsjEc

Use visual editor to describe your JSON structure and then run CAMV engine - fully reentrant memory resident - high performance - and supports use of XPath rules over JSON for cross field rules, codelists, SQL lookups and more.

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 a pull request may close this issue.

5 participants