torquebox/torquebox — pull request #65 by dobozysaurus (2012-01-03 13:47:42+00:00)
Title: TORQUE-624: Schema-based validation of torquebox configuration data

This pull request enabled a YAML schema-based validation of torquebox configuration data. It depends on a schema validation lib that'll need to be pulled into either torquebox or polyglot; that code is located here:

https://github.com/dobozysaurus/yaml-schema

Note that the schema also supports the concept of dependencies - both required (a requires b) and mutex (both a and b cannot be present). The former is used to check rooted subsections (ruby requires /application/root); the latter could be used to ensure that both /application/root and /application/RAILS_ROOT are not specified. I've switched off dependency checking for now, since it causes a bunch of test cases to fail (because they utilize configs that specify some rooted subsection but don't specify /application/root). Let me know if you want it turned back on.