File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,11 @@ The simplest way to validate an instance under a given schema is to use the
14
14
15
15
.. autofunction :: validate
16
16
17
- To learn more about creating json schema to validate your data, see
18
- `Understanding JSON Schema <http://spacetelescope.github.io/understanding-json-schema/ >`_
17
+ .. [# ] For information on creating JSON schemas to validate
18
+ your data, there is a good introduction to JSON Schema
19
+ fundamentals underway at `Understanding JSON Schema
20
+ <http://spacetelescope.github.io/understanding-json-schema/> `_
21
+
19
22
20
23
The Validator Interface
21
24
-----------------------
@@ -184,17 +187,17 @@ implements.
184
187
185
188
.. autoclass :: Draft4Validator
186
189
187
- For example, if you wanted to validate a schema you created against the Draft 3
188
- json schema, you could use:
189
190
190
- .. code-block :: python
191
+ For example, if you wanted to validate a schema you created against the
192
+ Draft 4 meta-schema, you could use:
191
193
194
+ .. code-block :: python
192
195
193
196
from jsonschema import Draft4Validator
194
-
197
+
195
198
schema = {
196
199
" $schema" : " http://json-schema.org/schema#"
197
-
200
+
198
201
" type" : " object" ,
199
202
" properties" : {
200
203
" name" : {" type" : " string" },
You can’t perform that action at this time.
0 commit comments