Skip to content

Instantly share code, notes, and snippets.

@brandones
Created October 14, 2019 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandones/e80f458c1d8845f755c87eb6aca1d50e to your computer and use it in GitHub Desktop.
Save brandones/e80f458c1d8845f755c87eb6aca1d50e to your computer and use it in GitHub Desktop.
Example config:
foo: {
bar: 0,
baz: {
qux: "abc",
quy: "xyz"
}
}
Example schema for this config:
{
foo: {
bar: {
default: -1,
validators: [isInteger]
},
baz: {
qux: {
default: "N/A",
validators: [isString]
},
quy: {
default: "",
validators: [isString]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment