Skip to content

Commit

Permalink
Fix Draft4Validator example code in validate.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
bennoleslie committed Jan 7, 2015
1 parent e1c3023 commit aa7233f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/validate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ Draft 4 meta-schema, you could use:
from jsonschema import Draft4Validator
schema = {
"$schema": "http://json-schema.org/schema#"
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"name": {"type": "string"},
"email": {"type": "string"},
}
"required": ["email"],
},
"required": ["email"]
}
Draft4Validator.check_schema(schema)
Expand Down

0 comments on commit aa7233f

Please sign in to comment.