Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing schemas to be passed uninitialized schemas #12

Merged
merged 1 commit into from Nov 13, 2013
Merged

Allowing schemas to be passed uninitialized schemas #12

merged 1 commit into from Nov 13, 2013

Conversation

tomgco
Copy link
Contributor

@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
Copy link
Owner

serby commented Nov 13, 2013

Is this backwards compatible?

@serby
Copy link
Owner

serby commented Nov 13, 2013

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

@tomgco
Copy link
Contributor Author

tomgco commented Nov 13, 2013

Yes it is

serby pushed a commit that referenced this pull request Nov 13, 2013
Allowing schemas to be passed uninitialized schemas
@serby serby merged commit 2cebca0 into serby:master Nov 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants