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

Version Path
json-schema-ouidou-2.9.1 lib/json-schema/attributes/disallow.rb
json-schema-ouidou-2.9.0 lib/json-schema/attributes/disallow.rb
json-schema-3.0.0 lib/json-schema/attributes/disallow.rb
mountapi-0.11.1 vendor/json-schema/lib/json-schema/attributes/disallow.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/bundler/gems/json-schema-2253a5ee6679/lib/json-schema/attributes/disallow.rb
json-schema-2.8.1 lib/json-schema/attributes/disallow.rb
json-schema-2.8.0 lib/json-schema/attributes/disallow.rb
json-schema-2.7.0 lib/json-schema/attributes/disallow.rb
json-schema-2.6.2 lib/json-schema/attributes/disallow.rb
json-schema-2.6.1 lib/json-schema/attributes/disallow.rb
json-schema-2.6.0 lib/json-schema/attributes/disallow.rb
json-schema-2.5.2 lib/json-schema/attributes/disallow.rb
json-schema-openc-fork-0.0.2 lib/json-schema/attributes/disallow.rb
json-schema-2.5.1 lib/json-schema/attributes/disallow.rb
json-schema-openc-fork-0.0.1 lib/json-schema/attributes/disallow.rb
json-schema-2.5.0 lib/json-schema/attributes/disallow.rb