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: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,12 +39,22 @@ Options:
39
39
-r, --generate-routers Generate modular api with multiple routers using RouterAPI (for bigger applications).
40
40
--specify-tags Use along with --generate-routers to generate specific routers from given list of tags.
41
41
-c, --custom-visitors PATH - A custom visitor that adds variables to the template.
42
+
-d, --output-model-type Specify a Pydantic base model to use (see [datamodel-code-generator](https://github.com/koxudaxi/datamodel-code-generator); default is `pydantic.BaseModel`).
43
+
-p, --python-version Specify a Python version to target (default is `3.8`).
42
44
--install-completion Install completion for the current shell.
43
45
--show-completion Show completion for the current shell, to copy it
44
46
or customize the installation.
45
47
--help Show this message and exit.
46
48
```
47
49
50
+
### Pydantic 2 support
51
+
52
+
Specify the Pydantic 2 `BaseModel` version in the command line, for example:
0 commit comments