When there is a validation error on the repository creation endpoint, the error message has duplicate information in it. That is probably caused by the schema in this file. We should improve this display, so that the error is only displayed once.
Steps to reproduce
Start Kibana and ES with yarn es snapshot --license=trial -E path.repo=/tmp/es-backups and yarn start
Navigate to repos list and try creating a new repo
Fill data that would fail validation, for example, type in a repo name that is longer that 1000 chars.
Check the error message when trying to save the repo.
When there is a validation error on the repository creation endpoint, the error message has duplicate information in it. That is probably caused by the schema in this file. We should improve this display, so that the error is only displayed once.
Steps to reproduce
yarn es snapshot --license=trial -E path.repo=/tmp/es-backups
andyarn start
Screenshot