vtils

Home > validator > yup > MixedSchema > oneOf

yup.MixedSchema.oneOf() method

Signature:

oneOf(arrayOfValues: Record<any, T> | Refable<T>[], message?: MixedLocale['oneOf']): this;

Parameters

Parameter Type Description
arrayOfValues Record<any, T> | Refable<T>[]  
message MixedLocale[‘oneOf’] (Optional)

Returns:

this