Merge pull request #192 from bennoleslie/patch-1

Fix Draft4Validator example code in validate.rst
This commit is contained in:
Julian Berman 2015-01-06 22:02:39 -05:00
commit d14012615f
1 changed files with 3 additions and 3 deletions

View File

@ -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)