eleith/schemajs — pull request #6 by ccowan (2013-08-12 18:24:18+00:00)
Title: Modify default to accept a function or value

I needed default to accept either a function (to generate a value) or a value. This will allow you to create the current date as the default value.

Use case:

```javascript

var schemajs.create({
created_on: { type: "date", default: Date.now }
});
```