Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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