Sha256: 1d12356a92bb7f80fef4f4ce10dc4845d02d005083cd14027f2b4fb9765740e4

Contents?: true

Size: 1.42 KB

Versions: 40

Compression:

Stored size: 1.42 KB

Contents

[![Build Status](https://travis-ci.org/adiwg/mdJson-schemas.svg?branch=master)](https://travis-ci.org/adiwg/mdJson-schemas)
[![Gem Version](https://badge.fury.io/rb/adiwg-mdjson_schemas.svg)](http://badge.fury.io/rb/adiwg-mdjson_schemas)
[![Bower version](https://badge.fury.io/bo/mdjson-schemas.svg)](https://badge.fury.io/bo/mdjson-schemas)

# mdJson-schemas


JSON schemas for the ADIwg project and data metadata standard

## Ruby Gem

Use with [ruby-json-schema/json-schema](https://github.com/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

### Usage

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

**NOTE**: The schemas use relative addresses for `$ref` paths. This causes a problem
with the [ruby-json-schema/json-schema](https://github.com/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

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
adiwg-mdjson_schemas-2.4.1 README.md
adiwg-mdjson_schemas-2.4.0 README.md
adiwg-mdjson_schemas-2.3.2 README.md
adiwg-mdjson_schemas-2.3.1 README.md
adiwg-mdjson_schemas-2.3.0 README.md
adiwg-mdjson_schemas-2.2.0 README.md
adiwg-mdjson_schemas-2.1.2 README.md
adiwg-mdjson_schemas-2.1.1 README.md
adiwg-mdjson_schemas-2.1.0 README.md
adiwg-mdjson_schemas-2.0.3 README.md
adiwg-mdjson_schemas-2.0.2 README.md
adiwg-mdjson_schemas-2.0.1 README.md
adiwg-mdjson_schemas-2.0.0 README.md
adiwg-mdjson_schemas-2.0.0.pre.beta.7 README.md
adiwg-mdjson_schemas-2.0.0.pre.beta.6 README.md
adiwg-mdjson_schemas-2.0.0.pre.beta.5 README.md
adiwg-mdjson_schemas-2.0.0.pre.beta.4 README.md
adiwg-mdjson_schemas-2.0.0.pre.beta.3 README.md
adiwg-mdjson_schemas-2.0.0.pre.beta.2 README.md
adiwg-mdjson_schemas-2.0.0.pre.beta.1 README.md