Join Slack
Powered by
Is there a way to define a "trait" as unique in th...
# talk-kratos
e
echoing-bird-61980
02/18/2023, 9:55 PM
Is there a way to define a "trait" as unique in the identity schema?
g
gentle-thailand-50068
02/20/2023, 7:45 AM
There is a
uniqueItems
validation for arrays (
https://json-schema.org/draft/2020-12/json-schema-validation.html#name-uniqueitems
)
e
echoing-bird-61980
02/20/2023, 9:28 PM
Ah that wouldn't work here, because the property i want to be unique "username" isn't an array
7
Views
Open in Slack
Previous
Next