|
15 | 15 | | [`--collapse-reuse-models`](#collapse-reuse-models) | Collapse duplicate models by replacing references instead of... | |
16 | 16 | | [`--collapse-root-models`](#collapse-root-models) | Inline root model definitions instead of creating separate w... | |
17 | 17 | | [`--collapse-root-models-name-strategy`](#collapse-root-models-name-strategy) | Select which name to keep when collapsing root models with o... | |
18 | | -| [`--dataclass-arguments`](#dataclass-arguments) | Customize dataclass decorator arguments via JSON dictionary.... | |
| 18 | +| [`--dataclass-arguments`](#dataclass-arguments) | Customize dataclass decorator arguments via JSON dictionary. | |
19 | 19 | | [`--duplicate-name-suffix`](#duplicate-name-suffix) | Customize suffix for duplicate model names. | |
20 | 20 | | [`--enable-faux-immutability`](#enable-faux-immutability) | Enable faux immutability in Pydantic models (frozen=True). | |
21 | 21 | | [`--force-optional`](#force-optional) | Force all fields to be Optional regardless of required statu... | |
|
25 | 25 | | [`--model-extra-keys`](#model-extra-keys) | Add model-level schema extensions to ConfigDict json_schema_... | |
26 | 26 | | [`--model-extra-keys-without-x-prefix`](#model-extra-keys-without-x-prefix) | Strip x- prefix from model-level schema extensions and add t... | |
27 | 27 | | [`--naming-strategy`](#naming-strategy) | Use parent-prefixed naming strategy for duplicate model name... | |
28 | | -| [`--output-model-type`](#output-model-type) | Select the output model type (Pydantic v2, dataclasses, Type... | |
| 28 | +| [`--output-model-type`](#output-model-type) | Select the output model type (Pydantic v2, Pydantic v2 datac... | |
29 | 29 | | [`--parent-scoped-naming`](#parent-scoped-naming) | Namespace models by their parent scope to avoid naming confl... | |
30 | 30 | | [`--reuse-model`](#reuse-model) | Reuse identical model definitions instead of generating dupl... | |
31 | 31 | | [`--reuse-scope`](#reuse-scope) | Scope for model reuse detection (root or tree). | |
32 | 32 | | [`--skip-root-model`](#skip-root-model) | Skip generation of root model when schema contains nested de... | |
33 | 33 | | [`--strict-nullable`](#strict-nullable) | Treat default field as a non-nullable field. | |
34 | 34 | | [`--strip-default-none`](#strip-default-none) | Remove fields with None as default value from generated mode... | |
35 | 35 | | [`--target-pydantic-version`](#target-pydantic-version) | Target Pydantic version for generated code compatibility. | |
36 | | -| [`--target-python-version`](#target-python-version) | Target Python version for generated code syntax and imports.... | |
| 36 | +| [`--target-python-version`](#target-python-version) | Target Python version for generated code syntax and imports. | |
37 | 37 | | [`--union-mode`](#union-mode) | Union mode for combining anyOf/oneOf schemas (smart or left_... | |
38 | 38 | | [`--use-default`](#use-default) | Use default values from schema in generated models. | |
39 | 39 | | [`--use-default-factory-for-optional-nested-models`](#use-default-factory-for-optional-nested-models) | Generate default_factory for optional nested model fields. | |
@@ -1624,7 +1624,7 @@ control over dataclass generation. |
1624 | 1624 |
|
1625 | 1625 | **Related:** [`--frozen-dataclasses`](model-customization.md#frozen-dataclasses), [`--keyword-only`](model-customization.md#keyword-only) |
1626 | 1626 |
|
1627 | | -**See also:** [Output Model Types](../what_is_the_difference_between_v1_and_v2.md) |
| 1627 | +**See also:** [Output Model Types](../output-model-types.md) |
1628 | 1628 |
|
1629 | 1629 | !!! tip "Usage" |
1630 | 1630 |
|
@@ -2631,7 +2631,7 @@ keyword-only arguments. |
2631 | 2631 |
|
2632 | 2632 | **Related:** [`--keyword-only`](model-customization.md#keyword-only), [`--output-model-type`](model-customization.md#output-model-type) |
2633 | 2633 |
|
2634 | | -**See also:** [Output Model Types](../what_is_the_difference_between_v1_and_v2.md) |
| 2634 | +**See also:** [Output Model Types](../output-model-types.md) |
2635 | 2635 |
|
2636 | 2636 | !!! tip "Usage" |
2637 | 2637 |
|
@@ -2878,7 +2878,7 @@ positional argument errors. |
2878 | 2878 |
|
2879 | 2879 | **Related:** [`--frozen-dataclasses`](model-customization.md#frozen-dataclasses), [`--output-model-type`](model-customization.md#output-model-type), [`--target-python-version`](model-customization.md#target-python-version) |
2880 | 2880 |
|
2881 | | -**See also:** [Output Model Types](../what_is_the_difference_between_v1_and_v2.md) |
| 2881 | +**See also:** [Output Model Types](../output-model-types.md) |
2882 | 2882 |
|
2883 | 2883 | !!! tip "Usage" |
2884 | 2884 |
|
@@ -3460,13 +3460,14 @@ parent model name when duplicates occur. For example, if both `Order` and |
3460 | 3460 |
|
3461 | 3461 | ## `--output-model-type` {#output-model-type} |
3462 | 3462 |
|
3463 | | -Select the output model type (Pydantic v2, dataclasses, TypedDict, msgspec). |
| 3463 | +Select the output model type (Pydantic v2, Pydantic v2 dataclass, |
| 3464 | +dataclasses, TypedDict, msgspec). |
3464 | 3465 |
|
3465 | 3466 | The `--output-model-type` flag specifies which Python data model framework to use |
3466 | 3467 | for the generated code. Supported values include `pydantic_v2.BaseModel`, |
3467 | | -`dataclasses.dataclass`, `typing.TypedDict`, and `msgspec.Struct`. |
| 3468 | +`pydantic_v2.dataclass`, `dataclasses.dataclass`, `typing.TypedDict`, and `msgspec.Struct`. |
3468 | 3469 |
|
3469 | | -**See also:** [Output Model Types](../what_is_the_difference_between_v1_and_v2.md) |
| 3470 | +**See also:** [Output Model Types](../output-model-types.md) |
3470 | 3471 |
|
3471 | 3472 | !!! tip "Usage" |
3472 | 3473 |
|
@@ -5066,7 +5067,7 @@ The `--target-python-version` flag controls Python version-specific syntax: |
5066 | 5067 |
|
5067 | 5068 | This affects import statements and type annotation syntax in generated code. |
5068 | 5069 |
|
5069 | | -**See also:** [CI/CD Integration](../ci-cd.md), [Python Version Compatibility](../python-version-compatibility.md), [Output Model Types](../what_is_the_difference_between_v1_and_v2.md) |
| 5070 | +**See also:** [CI/CD Integration](../ci-cd.md), [Output Model Types](../output-model-types.md), [Python Version Compatibility](../python-version-compatibility.md) |
5070 | 5071 |
|
5071 | 5072 | !!! tip "Usage" |
5072 | 5073 |
|
@@ -6227,4 +6228,3 @@ type, providing better type safety and IDE support. |
6227 | 6228 | ``` |
6228 | 6229 |
|
6229 | 6230 | --- |
6230 | | - |
0 commit comments