# File lib/json-schema/attributes/minproperties.rb, line 4
      def self.validate(current_schema, data, fragments, processor, validator, options = {})
        if data.is_a?(Hash) && (data.size < current_schema.schema['minProperties'])
          message = "The property '#{build_fragment(fragments)}' did not contain a minimum number of properties #{current_schema.schema['minProperties']}"
          validation_error(processor, message, fragments, current_schema, self, options[:record_errors])
        end
      end