Sha256: 850ce9d0a82a6a6aeb5d6b4505103460aebaf37ae380b80fcf09b3ed722f9648

Contents?: true

Size: 387 Bytes

Versions: 9

Compression:

Stored size: 387 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[:allPropertiesRequired] == true
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
json-schema-5.1.1 lib/json-schema/attributes/properties_v4.rb
json-schema-5.1.0 lib/json-schema/attributes/properties_v4.rb
json-schema-5.0.1 lib/json-schema/attributes/properties_v4.rb
json-schema-5.0.0 lib/json-schema/attributes/properties_v4.rb
json-schema-4.3.1 lib/json-schema/attributes/properties_v4.rb
json-schema-4.3.0 lib/json-schema/attributes/properties_v4.rb
json-schema-4.2.0 lib/json-schema/attributes/properties_v4.rb
json-schema-4.1.1 lib/json-schema/attributes/properties_v4.rb
json-schema-4.1.0 lib/json-schema/attributes/properties_v4.rb