Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

7 lines (6 sloc) 0.284 kb
require 'rubygems'
require 'json'
require 'jsonschema'
schema = File.open(File.join(File.dirname(__FILE__), "hal.json"), "rb"){|f| JSON.parse(f.read)}
data = File.open(File.join(File.dirname(__FILE__), "test.json"), "rb"){|f| JSON.parse(f.read)}
JSON::Schema.validate(data, schema)
Jump to Line
Something went wrong with that request. Please try again.