INFRA-3970 | Dhruv | add unique condition

This commit is contained in:
dhruvjoshi
2024-12-15 00:07:11 +05:30
parent 658a46f9b8
commit e84c873d09

View File

@@ -725,12 +725,15 @@ const perfValidationSchema = yup.object({
}),
});
const allowEndpointValidationSchema = yup.array().of(
yup.object({
host: yup.string().required('is Required'),
port: yup.string().required('is Required'),
}),
);
const allowEndpointValidationSchema = yup
.array()
.of(
yup.object({
host: yup.string().required('is Required'),
port: yup.string().required('is Required'),
}),
)
.unique('Host and port combination should be unique', ({ host, port }) => `${host}:${port}`);
const scyllaDbValidationSchema = yup.object({
name: yup