Sha256: affe83f30a31132d9732f3deb6d6aa177d7c692caa413a2333e80bf1f860c254

Contents?: true

Size: 372 Bytes

Versions: 7

Compression:

Stored size: 372 Bytes

Contents

require 'json-schema/attributes/properties'

module JSON
  class Schema
    class PropertiesV4Attribute < PropertiesAttribute
      # draft4 relies on its own RequiredAttribute validation at a higher level, rather than
      # as an attribute of individual properties.
      def self.required?(schema, options)
        options[:strict] == true
      end
    end
  end
end

Version data entries

7 entries across 6 versions & 3 rubygems

Version Path
json-schema-ouidou-2.9.1 lib/json-schema/attributes/properties_v4.rb
json-schema-ouidou-2.9.0 lib/json-schema/attributes/properties_v4.rb
json-schema-4.0.0 lib/json-schema/attributes/properties_v4.rb
json-schema-3.0.0 lib/json-schema/attributes/properties_v4.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/bundler/gems/json-schema-2253a5ee6679/lib/json-schema/attributes/properties_v4.rb
mountapi-0.11.1 vendor/json-schema/lib/json-schema/attributes/properties_v4.rb
json-schema-2.8.1 lib/json-schema/attributes/properties_v4.rb