Sha256: 5666b6ad97b2726860110ca4f602ba1abe1d4af8432c833a0d030fd8ebed8ea3
Contents?: true
Size: 430 Bytes
Versions: 15
Compression:
Stored size: 430 Bytes
Contents
module JSON class Schema class ExtendsAttribute < Attribute def self.validate(current_schema, data, fragments, validator, options = {}) schemas = current_schema.schema['extends'] schemas = [schemas] if !schemas.is_a?(Array) schemas.each do |s| schema = JSON::Schema.new(s,current_schema.uri,validator) schema.validate(data, fragments) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems