rse / ducky

Duck-Typed Value Handling for JavaScript

Home Page:http://duckyjs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Required fields without pos set cause no error

leonpegg opened this issue · comments

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"
}
});
}