[x] Commits are signed per the DCO using --signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Description
This PR adds validations for the indexPattern configured in autofollow API
Existing behavior of the autofollow API with invalid indexPattern:
Behaviour after adding validations on indexPattern:
Issues Resolved
https://github.com/opensearch-project/cross-cluster-replication/issues/1034
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.