serby / schemata

Define, create, and validate your business objects based on specified schema.
45 stars 16 forks source link

Allowing schemas to be passed uninitialized schemas #12

Closed tomgco closed 10 years ago

tomgco commented 10 years ago

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 commented 10 years ago

Is this backwards compatible?

serby commented 10 years ago

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

tomgco commented 10 years ago

Yes it is