Schemer helps you write structured and well validated config files for any application, yay!
- Write a JSON schema
- Write a golang struct to receive the file-based configuration, corresponding to the JSON schema
- Input both to
schemer.Schemer, callParsevoila! Validated configuration for your application
Schemer supports both environment variable injection and path-based lookups through its reference formatting detection:
# Reference variable, with default
${ref:path.to.field:default}
# Reference variable, without default
${ref:path.to.field}
# Environment variable, with default
${env:variable:default}
# Reference variable, without default
${env:variable}