Skip to content

Commit

Permalink
remove schema field
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc MacLeod authored and Marc MacLeod committed Jun 9, 2015
1 parent fa077c2 commit 345773d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@ JSON schema.
Compiler.prototype.compile = function(tree) {
if (tree.type === 'object') {
this.schema = {
'$schema': 'http://json-schema.org/draft-04/schema#'
// '$schema': 'http://json-schema.org/draft-04/schema#'
// ,description: ''
,type: 'object'
type: 'object'
,properties: {}
,required: []
};
this.generate(tree, this.schema.properties, this.schema);
} else {
this.schema = {
type: 'array'
,'$schema': 'http://json-schema.org/draft-04/schema#'
// ,'$schema': 'http://json-schema.org/draft-04/schema#'
// ,'description': ''
// ,minItems: 1
// ,uniqueItems: true
Expand Down

0 comments on commit 345773d

Please sign in to comment.