arrayType = (schema, { sample = [] } = {}) => {
  return applyArrayConstraints(sample, schema)
}
If uniqueItems is true, it implies that every item in the array must be unique.
 This overrides any minItems constraint that cannot be satisfied with unique items.
 So if minItems is greater than the number of unique items,
 it should be reduced to the number of unique items.