Sha256: ea9b184695ab453e7fb79db5038330682e86f4a4e1138807d25577b5a25db616

Contents?: true

Size: 468 Bytes

Versions: 13

Compression:

Stored size: 468 Bytes

Contents

require 'test/unit'
require File.dirname(__FILE__) + '/../lib/json-schema'

class AnyOfRefSchemaTest < Test::Unit::TestCase
  def test_any_of_ref_schema
    schema = File.join(File.dirname(__FILE__),"schemas/any_of_ref_schema.json")
    data = File.join(File.dirname(__FILE__),"data/any_of_ref_data.json")
    errors = JSON::Validator.fully_validate(schema,data, :errors_as_objects => true)
    assert(errors.empty?, errors.map{|e| e[:message] }.join("\n"))
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
json-schema-2.2.5 test/test_any_of_ref_schema.rb
json-schema-pvdgm-2.3.1 test/test_any_of_ref_schema.rb
json-schema-2.2.4 test/test_any_of_ref_schema.rb
json-schema-2.2.3 test/test_any_of_ref_schema.rb
json-schema-2.2.2 test/test_any_of_ref_schema.rb
json-schema-2.2.1 test/test_any_of_ref_schema.rb
json-schema-2.2.0 test/test_any_of_ref_schema.rb
json-schema-2.1.9 test/test_any_of_ref_schema.rb
json-schema-2.1.8 test/test_any_of_ref_schema.rb
json-schema-2.1.7 test/test_any_of_ref_schema.rb
json-schema-2.1.6 test/test_any_of_ref_schema.rb
json-schema-2.1.5 test/test_any_of_ref_schema.rb
json-schema-2.1.4 test/test_any_of_ref_schema.rb