Skip to content

Commit

Permalink
bumped version updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed May 8, 2013
1 parent e2c58eb commit f8a17b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ var bob = schema.new({
});
```

## using schema descriptors
#### using schema descriptors

A schema descriptor is a key to type descriptor object.
The key for each property on the object represents a possible key on a model instance created from the schema instance.
Expand All @@ -186,7 +186,7 @@ new draft.Schema({

--

## Tree(descriptor, options)
### Tree(descriptor, options)

Tree constructor.
Creates an object tree for a schema. This is used for aggregating types
Expand All @@ -207,7 +207,7 @@ var tree = new draft.Tree({
tree.name; // { Constructor: [Function: String] }
```

### .add(parent, key, descriptor)
#### .add(parent, key, descriptor)

Adds a key to the tree on a given parent tree.
Defaults to 'this' as the parent if one is not provided.
Expand Down Expand Up @@ -236,7 +236,7 @@ tree.host; // { Constructor: [Function: String] }
```
--

## Type(Constructor, descriptor)
### Type(Constructor, descriptor)

Type constructor. Creates a Type used in a Tree instance for a Schema instance.
It is meant to provide methods for validation and coercion.
Expand Down Expand Up @@ -401,7 +401,7 @@ Returns a value representation of a Model instance

--

## example usage
## example

Define a schema for an object with types. Strict mode default

Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "draft",
"repo": "jwerle/draft",
"description": "Construct Object schemas and models",
"version": "0.0.4",
"version": "0.0.5",
"keywords": [
"object",
"schema",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "draft",
"version": "0.0.4",
"version": "0.0.5",
"description": "Construct Object schemas and models",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit f8a17b4

Please sign in to comment.