Permalink
Commits on Mar 3, 2016
  1. 3.0.1

    committed Mar 3, 2016
Commits on Mar 2, 2016
Commits on Mar 1, 2016
  1. Fix a bug casting dynamic subschemas

    The `getType(type, obj)` function expects an entire object
    as the second argument. Inside the `castProperty()` function
    however, it was only getting a single property value.
    
    A failing test is included, now which passes. Two other tests
    relied on this broken functionality, so they were fixed too.
    
    I thought the cleanest thing to do would be change the method
    signature of castProperty to `fn(type, key, obj)`, but although
    that means less repetition and a simpler signature it would break
    compatibility. Since `castProperty()` is a public method (and I
    know is used with the signature `fn(type, value)` it's best to
    leave that alone.
    bengourley committed Mar 1, 2016
Commits on Dec 17, 2015
  1. Documentation updates from #35

    committed Dec 17, 2015
Commits on Oct 30, 2015
  1. Add v3 info to readme

    committed Oct 30, 2015
  2. 3.0.0

    committed Oct 30, 2015
  3. Merge pull request #34 from bengourley/default-value-restriction

    Check that defaultValue is a function or primitive type, fixes #32
    committed Oct 30, 2015
  4. Merge pull request #33 from bengourley/package-json-license

    Add license property to package.json
    committed Oct 30, 2015
  5. Change license to ISC

    bengourley committed Oct 30, 2015
  6. More better english

    bengourley committed Oct 30, 2015
  7. Add license property to package.json

    npm quit yo' complainin'!
    
    `npm WARN package.json schemata@2.4.0 No license field.`
    bengourley committed Oct 30, 2015
Commits on Oct 27, 2015
  1. 2.4.0

    committed Oct 27, 2015
  2. Merge pull request #31 from balaclark/bug/sub-schema-default-values

    allow sub-schema properties to have default values
    committed Oct 27, 2015
Commits on Oct 15, 2015
  1. 2.3.1

    committed Oct 15, 2015
  2. Adding newer nodejs

    committed Oct 15, 2015
Commits on Oct 8, 2015
  1. Merge pull request #29 from maael/master

    Alter parents to not use prototypes
    committed Oct 8, 2015
  2. Alter parents to not use prototypes

    The use of prototype for the parent caused repeated validates on the same schemata
    object, but with different passed objects to return the parent of the first passed
    object. The validate function has been changed to set the parent, and then begin
    the recursive validation that it originally did, but with this parent passed to it.
    maael committed Oct 8, 2015
Commits on Oct 6, 2015
  1. 2.3.0

    committed Oct 6, 2015
  2. Merge pull request #28 from balaclark/bug/strip-null

    allow subschema objects to be null (not-required)
    committed Oct 6, 2015
Commits on Oct 5, 2015
Commits on Oct 2, 2015
Commits on Sep 10, 2015
  1. 2.2.0

    committed Sep 10, 2015
Commits on Sep 8, 2015
  1. Merge pull request #27 from maael/master

    Add parent to subschema validators
    committed Sep 8, 2015
Commits on Sep 4, 2015
  1. > remove sigmund dependency

    maael committed Sep 4, 2015
Commits on Sep 1, 2015
  1. Add sigmund dependency

    maael committed Sep 1, 2015
Commits on Jun 22, 2015
  1. Better formatting on readme

    committed Jun 22, 2015
  2. 2.1.2

    committed Jun 22, 2015