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

POD Metadata schema would be useful as a JavaScript file #13

Open
rclark opened this issue Nov 24, 2013 · 0 comments
Open

POD Metadata schema would be useful as a JavaScript file #13

rclark opened this issue Nov 24, 2013 · 0 comments

Comments

@rclark
Copy link

rclark commented Nov 24, 2013

Currently the canonical version of the metadata schema is available here:
http://project-open-data.github.io/schema/1_0_final/single_entry.json

It is a JSON file. That means that if I want to use it in any distributed fashion, I have to make an AJAX-style request. This can be problematic in browser applications, and adds async to a Node.js app that really shouldn't have to be there.

A better approach might be to:

  • make a standalone Git repository for the schema to live in
  • expose a JavaScript file that wraps the JSON object in a variable name. That allows me to include the schema in a front-end application with <script> tags
  • write a package.json and register with NPM for use in Node.js apps
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

1 participant