@@ -380,6 +380,11 @@ Typing customization:
380380 Set enum members as default values for enum field
381381 --strict-types {str,bytes,int,float,bool} [{str,bytes,int,float,bool} ...]
382382 Use strict types
383+ --type-mappings TYPE_MAPPINGS [TYPE_MAPPINGS ...]
384+ Override default type mappings. Format : " type+format=target" (e.g.,
385+ " string+binary=string" to map binary format to string type) or
386+ " format=target" (e.g., "binary=string"). Can be specified multiple
387+ times.
383388 --use-annotated Use typing.Annotated for Field(). Also, `--field-constraints` option
384389 will be enabled.
385390 --use-generic-container-types
@@ -391,10 +396,14 @@ Typing customization:
391396 corresponding con* constrained types.
392397 --use-one-literal-as-default
393398 Use one literal as default value for one literal field
399+ --use-specialized-enum, --no-use-specialized-enum
400+ Don''t use specialized Enum class (StrEnum, IntEnum) even if the
401+ target Python version supports it
394402 --use-standard-collections
395403 Use standard collections for type hinting (list, dict)
396- --use-subclass-enum Define Enum class as subclass with field type when enum has type
397- (int, float, bytes, str)
404+ --use-subclass-enum Define generic Enum class as subclass with field type when enum has
405+ type (int, float, bytes, str)
406+ --use-type-alias Use TypeAlias instead of root models (experimental)
398407 --use-union-operator Use | operator for Union type (PEP 604).
399408 --use-unique-items-as-set
400409 define field type as `set` when the field attribute has
@@ -433,6 +442,9 @@ Field customization:
433442 default values.
434443 --use-field-description
435444 Use schema description to populate field docstring
445+ --use-inline-field-description
446+ Use schema description to populate field docstring as inline
447+ docstring
436448
437449Model customization :
438450 --allow-extra-fields Deprecated : Allow passing extra fields. This flag is deprecated. Use
@@ -518,6 +530,9 @@ General options:
518530 --debug show debug message (require "debug". `$ pip install ''datamodel-code-
519531 generator[debug]''`)
520532 --disable-warnings disable warnings
533+ --generate-pyproject-config
534+ Generate pyproject.toml configuration from the provided CLI
535+ arguments and exit
521536 --no-color disable colorized output
522537 --version show version
523538 -h, --help show this help message and exit
0 commit comments