INFRA-3970 | Dhruv | add unique condition
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user