-
Notifications
You must be signed in to change notification settings - Fork 11
Example data.json file #7
Comments
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? |
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. |
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. |
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. |
+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. |
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. |
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. |
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?
The text was updated successfully, but these errors were encountered: