Skip to content
Marcello de Sales edited this page Aug 13, 2018 · 4 revisions
  1. What's the purpose of the Config Validator?
  2. What kind of files does this project validate?
  3. What kind of validation does it perform?
  4. Can I add my own validations?
  5. What are the steps to setup my config repo?
  6. Can I run the scripts locally?

Instructions

  • If you have general questions regarding validation of config repo files, read on.
  • If you want to jump ahead on the technical details, go to the sidebar with the topics in the order presented.

What's the purpose of the Config Validator?

The Spring Cloud Config Validator, aka Config Validator, can be used to automagically validate changes in configuration files from a Spring Cloud Config repo. That is, when changing files with extensions .json, .yml or .yaml, or .properties, Github Enterprise can statically validate those files on your behalf and, as a result of a failure, block commits from being merged on the origin.

This project is an optional helper service that can help you and your team increase the quality of the changes made to configuration files. In fact, it will definitely help you during any phase from development to production.

Go to section Setup Config Repo Hook if you already know about it and is ready to setup your repo.

What kind of files does this project validate?

This project will validate the extension files supported by the Spring Cloud Config Server, namely with extensions .json, .yml or .yaml, or .properties.

What kind of validation does it perform?

At this first implementation, this script will only perform static validation based on the file extension.

Future releases will implement more validations.

Can I add my own validations?

Version v1.0.0 only supports static validation base on file extension as described above. We have plans to perform the following:

  • Users define configuration validations in the level of properties.
  • Variable Types
  • Variable Type Ranges
  • Others at your request.

Please contact the team on the links below for requirements.

What are the steps to setup my config repo?

Make sure you already have config properties.

Can I run the scripts locally?

Yes, you can! Before you do so, make sure you have either Python or Docker to execute the validation locally.