# File lib/json-schema/attributes/uniqueitems.rb, line 4
      def self.validate(current_schema, data, fragments, processor, validator, options = {})
        if data.is_a?(Array)
          d = data.clone
          dupes = d.uniq!
          if dupes
            message = "The property '#{build_fragment(fragments)}' contained duplicated array values"
            validation_error(processor, message, fragments, current_schema, self, options[:record_errors])
          end
        end
      end