You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/2 usage/4 Building Schemas with the Simple Schema Generator.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,12 @@ Create a Schema Generator
16
16
In order to produce schemas you need to instantiate a schema generator first. This is done with the following Python code:
17
17
18
18
```python
19
-
gen = jk_jsonschema.createSchemaGenerator()
19
+
gen = jk_jsonschema.createObjectSchemaGenerator()
20
20
```
21
21
22
22
Note: This function will provide an object for schema generation. As possibly maybe sometimes there might be different implementations in the future, all generation of objects is performed by this method. Please always use this factory method as it will be adapted to future implementations if necessary.
23
23
24
-
Defeine the Expectations
24
+
Define the Expectations
25
25
------------------------
26
26
27
27
After having generated a schema generator you can use it to define your schemas.
@@ -32,7 +32,7 @@ This default schema generator assumes you want to produce a schema matching an o
32
32
33
33
The object generator provides the following methods:
"description": "This python module provides parser and validator for JSON files and data structures. The JSON parser is designed as a drop-in replacement for the built in python JSON parser as this parser here supports using comments in JSON files (which in some use cases is very a very handy feature).",
0 commit comments