@@ -20,7 +20,7 @@ from JSON dataset.
2020* Handling ** recursive data** structures (i.e family tree)
2121* Detecting ** string serializable types** (i.e. datetime or just stringify numbers)
2222* Detecting fields containing string constants (` Literal['foo', 'bar'] ` )
23- * Generation models as ** tree ** (nested models) or ** list **
23+ * Generation models as ** list ** (flat models structure ) or ** tree ** (nested models)
2424* Specifying when dictionaries should be processed as ** ` dict ` type** (by default every dict is considered as some model)
2525* ** CLI** API with a lot of options
2626
@@ -103,7 +103,7 @@ driver_standings.json
103103```
104104
105105```
106- json2models -f pydantic -s flat - l DriverStandings - driver_standings.json
106+ json2models -f pydantic -l DriverStandings - driver_standings.json
107107```
108108
109109``` python
@@ -161,7 +161,7 @@ It requires a lit bit of tweaking:
161161* Disable string literals
162162
163163```
164- json2models -s flat - f dataclasses -m Swagger testing_tools/swagger.json \
164+ json2models -f dataclasses -m Swagger testing_tools/swagger.json \
165165 --dict-keys-fields securityDefinitions paths responses definitions properties \
166166 --merge percent_50 number --max-strings-literals 0
167167```
@@ -338,9 +338,9 @@ Arguments:
338338 * ** Default** : ` -f base `
339339
340340* ` -s ` , ` --structure ` - Models composition style.
341- * ** Format** : ` -s {nested, flat } `
342- * ** Example** : ` -s flat `
343- * ** Default** : ` -s nested `
341+ * ** Format** : ` -s {flat, nested } `
342+ * ** Example** : ` -s nested `
343+ * ** Default** : ` -s flat `
344344
345345* ` --datetime ` - Enable datetime/date/time strings parsing.
346346 * ** Default** : disabled
0 commit comments