hapijs / joi

The most powerful data validation library for JS
Other
20.75k stars 1.51k forks source link

fix: handle bigint in unique rule #3026

Closed copoix-ultra closed 3 months ago

copoix-ultra commented 3 months ago

When trying to validate uniqueness on bigint type arrays, the error Failed to find unique map container for type bigint is returned.

this PR adds handling bigint as a native type without having to provide a compare function and treat it as custom

Marsup commented 3 months ago

Thanks!