In our project, we have create a repository. The repository has 100s of JSON and XML files. We have written XML and JSON Validators and define schema to validate XML and JSON files. Employee will update XML and JSON file and send merge requests. There are chances that they violate schema definitions. We would like to catch this and do not allow to merge such changes.
So, we are writing a Job - validate-schema. This job should validate Schema of all XML and JSON files against the Schema definition specified inside the repository.
Is there a way in Gitlab itself to do such validation? Otherwise, it seems we need to write a third party program to valid this schema and call then inside validate-schema job.