Skip to content

1.x Config specification

Guillaume R edited this page Apr 11, 2017 · 7 revisions

Introduction

When dealing with configurations files that are modified by the end user, the software should detect invalid values and react (for instance, use default values instead of the invalid ones). While it's possible to load the config and then retrieve and check each value individually with custom functions, this approach is heavy and boring to code.

It would be nice if we could delegate most of the work to the config library, wouldn't it? Well, that's exactly what the config specification is for!

The ConfigSpec

Creation

Usage