Sha256: 05328663ef6d98fdbcd40d089eca8ee674ca43f1df940f10ae71f4378c36e26e
Contents?: true
Size: 390 Bytes
Versions: 16
Compression:
Stored size: 390 Bytes
Contents
require 'json-schema/attribute' module JSON class Schema class DisallowAttribute < Attribute def self.validate(current_schema, data, fragments, processor, validator, options = {}) return unless type = validator.attributes['type'] type.validate(current_schema, data, fragments, processor, validator, options.merge(:disallow => true)) end end end end
Version data entries
16 entries across 15 versions & 4 rubygems