Resolve issue #2262 validate topic creation (#2390)

Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
This commit is contained in:
Daniel Ching 2022-08-05 09:13:28 -06:00 committed by GitHub
parent 8f0ffe665c
commit 98257b2b5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,16 +55,19 @@ export const topicFormValidationSchema = yup.object().shape({
partitions: yup
.number()
.min(1)
.max(2147483647)
.required()
.typeError('Number of partitions is required and must be a number'),
replicationFactor: yup
.number()
.min(1)
.max(2147483647)
.required()
.typeError('Replication factor is required and must be a number'),
minInSyncReplicas: yup
.number()
.min(1)
.max(2147483647)
.required()
.typeError('Min in sync replicas is required and must be a number'),
cleanupPolicy: yup.string().required(),