You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unique() does not allow nested duplication check of array of objects #208
Change unique to accept the same args: either a comparator function; or a string and an optional "options" object. @types/joi can help us work out what the arg types should be. Then update the interface ArraySchemaModifiers, and add tests.
Activity
ujwal-setlur commentedon May 11, 2021
Will try with
custom()laurence-myers commentedon May 17, 2021
Looks like
joifulis accidentally missing this functionality. Should be an easy fix.https://github.com/joiful-ts/joiful/blob/master/src/decorators/array.ts#L109
Change
uniqueto accept the same args: either a comparator function; or a string and an optional "options" object.@types/joican help us work out what the arg types should be. Then update the interfaceArraySchemaModifiers, and add tests.ujwal-setlur commentedon Feb 22, 2023
Any update?
laurence-myers commentedon Feb 22, 2023
No update from me, sorry. I'd welcome a Pull Request. 😁