I am trying to create a schema to validate if the entered input is not already in an array. If it is, then i need to log an error to the user. E.g. if the entered input value "apple" is already in some array ["apple", "mango", "banana"] then i need to show the message "Fruit already exists". What's the validation schema for that?
Thanks

