vtils

Home > validator > yup > ObjectSchema > noUnknown

yup.ObjectSchema.noUnknown() method

Signature:

noUnknown(onlyKnownKeys?: boolean, message?: ObjectLocale['noUnknown']): this;

Parameters

Parameter Type Description
onlyKnownKeys boolean (Optional)
message ObjectLocale[‘noUnknown’] (Optional)

Returns:

this