Skip to content
JSON schemas, examples, and templates for ADIwg metadata standards
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Fix mdJson.json example Oct 29, 2018
lib Bump version Oct 29, 2018
schema
scripts
test Move local to projection Oct 10, 2018
.editorconfig Package for npm Aug 31, 2017
.github_changelog_generator Update CHANGELOG May 17, 2017
.gitignore
.jshintrc Package for npm Aug 31, 2017
.travis.yml
CHANGELOG.md Update CHANGELOG Oct 14, 2018
CREDITS Moving schemas and examples from arcticlcc/mdtranslator Mar 14, 2014
Gemfile Update gem. May 6, 2014
HISTORY.md Update CHANGELOG May 17, 2017
LICENSE Change LICENSE to GPLv3 Aug 31, 2017
README.md Update README Dec 28, 2017
Rakefile Add strict option to load_schemas method Feb 6, 2017
adiwg-json_schemas.gemspec Add other to mapProjection Oct 17, 2018
bower.json
index.js
package.json Bump version Oct 29, 2018
yarn.lock Update packages, ajv Sep 4, 2018

README.md

Build Status Gem Version Bower version npm version

mdJson-schemas

JSON schemas for the ADIwg project and data metadata standard

Ruby Gem

Use with ruby-json-schema/json-schema to validate mdJSON records in Ruby.

Installation

Add this line to your application's Gemfile:

gem 'adiwg-json_schemas'

And then execute:

$ bundle

Or install it yourself as:

$ gem install adiwg-json_schemas

Bower

Install:

$ bower install mdjson-schemas

npm

Install:

$ npm install mdjson-schemas

const Schemas = require('../resources/js/schemas.js');

Usage

The main schema file is schema/schema.json. Load that file in your validator.

NOTE: The schemas use relative addresses for $ref paths. If this causes a problem with the ruby-json-schema/json-schema gem, as a workaround you can pre-load all of the schemas by calling ADIWG::MdjsonSchemas::Utils::load_schemas before validation.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
You can’t perform that action at this time.