Allowing schemas to be passed uninitialized schemas #12

Merged
merged 1 commit into from Nov 13, 2013

Projects

None yet

2 participants

@tomgco
tomgco commented Nov 13, 2013

This allows:

var blogSchema = schemata({
    comments:
      { type: schemata.Array(createCommentSchema)
    }
  })
  return blogSchema

Instead of:

  var blogSchema = schemata({
    comments:
      { type: schemata.Array(createCommentSchema())
    }
  })
  return blogSchema
@serby
Owner
serby commented Nov 13, 2013

Is this backwards compatible?

@serby
Owner
serby commented Nov 13, 2013

Looks like it is, so it will be released as v0.1.0

@tomgco
tomgco commented Nov 13, 2013

Yes it is

@serby serby merged commit 2cebca0 into serby:master Nov 13, 2013

1 check passed

Details default The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment