Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Validate of config objects read from: config file, command line, env var, app override #5

Open
tohagan opened this issue Aug 4, 2014 · 0 comments

Comments

@tohagan
Copy link
Owner

tohagan commented Aug 4, 2014

Need to design/implement a simple validation process based on the schema defined in defaults.config or perhaps another schema file. Needs to allow apps to use their own schema validation methods.

Ideas:

  • Basic validation: checks that attributes in each config source (file, command line, env var) correspond to a named attribute in defaults.config file and reports invalid named attributes.
  • Define a set of named validation functions that an app developer can augment with additional named validation functions.
  • Define the named validation function that applies to each schema attribute.
  • Allow additional validation function args to be passed to validation function for each schema attribute.
@tohagan tohagan changed the title Add feature to Validate config schema Add Validate of config objects read from: config file, command line, env var, app override Aug 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant