mapseed/platform

Config validator?

Closed this issue · 0 comments

There are a lot of ways to break or misconfigure the config. When something is misconfigured, there is little to no help in the form of warning messages or useful errors.

Some misconfigurations would be catchable by a validator, however. For example, a validator could check for things like duplicate slugs, missing sidebar information, missing form field information, etc. I'm imagining a script that content/flavor creators could easily execute on their flavor config, which would return useful error messages and suggestions if misconfigurations are found.

Any validator logic we create would be conceivably useful down the road when we move from a config file to a config database. Instead of catching misconfigurations after a config is created, we could use the same logic to prevent invalid config entries in the first place.

Not sure how pressing this is, however.