File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ json2python-models is a [Python](https://www.python.org/) tool that can generate
2626[ * skip up to ** Installation*** ] ( #installation )
2727
2828```
29+ driver_standings.json
2930[
3031 {
3132 "season": "2019",
@@ -61,6 +62,10 @@ json2python-models is a [Python](https://www.python.org/) tool that can generate
6162]
6263```
6364
65+ ```
66+ json2models -f attrs -l DriverStandings driver_standings.json
67+ ```
68+
6469``` python
6570import attr
6671from json_to_models.dynamic_typing import IntString, IsoDateString
@@ -163,10 +168,12 @@ Arguments:
163168 * ** Default** : ` --merge percent_70 number_10 `
164169
165170* ` --dict-keys-regex ` , ` --dkr ` - List of regular expressions (Python syntax).
171+ If all keys of some dict are match one of the pattern then
172+ this dict will be marked as dict field but not nested model.
166173 * ** Format** : ` --dkr RegEx [RegEx ...] `
167- If all keys of some dict are match one of them then this dict will be marked as dict field but not nested model.
168174 * ** Example** : ` --dkr node_\d+ \d+_\d+_\d+ `
169- * ** Note** : ` ^ ` and ` $ ` (string borders) tokens will be added automatically but you have escape to other special characters manually.
175+ * ** Note** : ` ^ ` and ` $ ` (string borders) tokens will be added automatically but you
176+ have escape to other special characters manually.
170177 * ** Optional**
171178
172179* ` --dict-keys-fields ` , ` --dkf ` - List of model fields names that will be marked as dict fields
You can’t perform that action at this time.
0 commit comments