Fix Draft4Validator example code in validate.rst

This commit is contained in:
Ben Leslie 2015-01-07 13:56:02 +11:00
parent e1c30237cf
commit aa7233f15e
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)