Required fields without pos set cause no error
leonpegg opened this issue · comments
Leon Pegg commented
example = function () {
var params = ducky.params("config", arguments, {
scope: {
valid: "boolean"
},
key: {
valid: /^[a-z][a-z0-9_]*$/
},
value: {
def: undefined,
valid: "object"
},
force: {
req: true,
valid: "boolean"
}
});
}