Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
This commit is contained in:
parent
8f0ffe665c
commit
98257b2b5f
1 changed files with 3 additions and 0 deletions
|
@ -55,16 +55,19 @@ export const topicFormValidationSchema = yup.object().shape({
|
||||||
partitions: yup
|
partitions: yup
|
||||||
.number()
|
.number()
|
||||||
.min(1)
|
.min(1)
|
||||||
|
.max(2147483647)
|
||||||
.required()
|
.required()
|
||||||
.typeError('Number of partitions is required and must be a number'),
|
.typeError('Number of partitions is required and must be a number'),
|
||||||
replicationFactor: yup
|
replicationFactor: yup
|
||||||
.number()
|
.number()
|
||||||
.min(1)
|
.min(1)
|
||||||
|
.max(2147483647)
|
||||||
.required()
|
.required()
|
||||||
.typeError('Replication factor is required and must be a number'),
|
.typeError('Replication factor is required and must be a number'),
|
||||||
minInSyncReplicas: yup
|
minInSyncReplicas: yup
|
||||||
.number()
|
.number()
|
||||||
.min(1)
|
.min(1)
|
||||||
|
.max(2147483647)
|
||||||
.required()
|
.required()
|
||||||
.typeError('Min in sync replicas is required and must be a number'),
|
.typeError('Min in sync replicas is required and must be a number'),
|
||||||
cleanupPolicy: yup.string().required(),
|
cleanupPolicy: yup.string().required(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue