nanoc / features

Collection of feature requests
2 stars 1 forks source link

Schema-checked configuration file #32

Closed denisdefreyne closed 5 years ago

denisdefreyne commented 6 years ago

(Depends on #28)

Typos in the configuration file will go unnoticed. It would be useful to verify the structure of the configuration file (nanoc.yaml) so that unknown attributes are caught at compile time.

denisdefreyne commented 5 years ago

More use cases:

output_dir: true
# Should error with e.g. “expected output_dir to be a String, not `true`
environments:
  production:
# Should error with e.g. “expected environments.production to be a Hash not `nil`

See https://github.com/nanoc/nanoc/issues/1352.