exit 0
repository files []
{
 "changelog": "https://github.com/datamodel-code-generator/datamodel-code-generator/blob/main/CHANGELOG.md",
 "changes": [
  {
   "action": "required",
   "id": "python-37-runtime-dropped",
   "kind": "runtime",
   "migrate": "Use Python 3.8 or newer.",
   "refs": [
    "#2060"
   ],
   "release": "0.2.0",
   "source": "release-note",
   "summary": "Install and run the generator on Python 3.8 or newer.",
   "title": "datamodel-code-generator no longer runs on Python 3.7"
  },
  {
   "action": "keep",
   "affects": {
    "input_file_types": [
     "openapi",
     "jsonschema"
    ]
   },
   "after": "class Status(StrEnum):",
   "before": "class Status(Enum):",
   "id": "specialized-enum-default",
   "keep": {
    "flags": [
     "--no-use-specialized-enum"
    ]
   },
   "kind": "default-output",
   "refs": [
    "#2512"
   ],
   "release": "0.2.0",
   "source": "release-note",
   "summary": "Enums of strings subclass `StrEnum` instead of `Enum`.",
   "title": "String enums become `StrEnum`"
  },
  {
   "action": "review",
   "id": "union-item-suffix-removed",
   "keep": {
    "note": "No option restores the old names; `--model-name-map` can pin individual names."
   },
   "kind": "default-output",
   "refs": [
    "#1682"
   ],
   "release": "0.2.0",
   "source": "release-note",
   "summary": "Models of `anyOf` and `oneOf` members no longer end in `Item`.",
   "title": "Models of `anyOf` members lose the `Item` suffix"
  },
  {
   "action": "warn",
   "affects": {
    "options": [
     "--validation"
    ]
   },
   "id": "deprecation:cli.validation",
   "kind": "warning",
   "migrate": "Use --field-constraints.",
   "release": "0.2.0",
   "source": "registry",
   "summary": "--validation is deprecated.",
   "title": "--validation now emits DeprecationWarning"
  },
  {
   "action": "none",
   "id": "preset:20260101",
   "kind": "preset",
   "release": "0.2.0",
   "source": "registry",
   "summary": "The first dated presets; the [presets page](https://datamodel-code-generator.koxudaxi.dev/presets/) lists their options.",
   "title": "New dated presets `standard-py3XX-20260101` and `practical-py3XX-20260101`"
  },
  {
   "action": "required",
   "id": "python-38-runtime-dropped",
   "kind": "runtime",
   "migrate": "Use Python 3.9 or newer.",
   "refs": [
    "#3003"
   ],
   "release": "0.3.0",
   "source": "release-note",
   "summary": "Install and run the generator on Python 3.9 or newer.",
   "supersedes": [
    "python-37-runtime-dropped"
   ],
   "title": "datamodel-code-generator no longer runs on Python 3.8"
  },
  {
   "action": "keep",
   "affects": {
    "options": [
     "--use-annotated"
    ]
   },
   "id": "annotated-constraints",
   "keep": {
    "flags": [
     "--field-constraints"
    ]
   },
   "kind": "default-output",
   "refs": [
    "#3001"
   ],
   "release": "0.3.0",
   "source": "release-note",
   "summary": "With `--use-annotated`, constraints are written in `Annotated`.",
   "title": "Constraints move into `Annotated`"
  },
  {
   "action": "keep",
   "affects": {
    "output_model_types": [
     "pydantic_v2.BaseModel"
    ]
   },
   "id": "aware-datetime",
   "keep": {
    "flags": [
     "--output-datetime-class",
     "datetime"
    ]
   },
   "kind": "default-output",
   "refs": [
    "#1735"
   ],
   "release": "0.3.0",
   "source": "release-note",
   "summary": "A timestamp without a UTC offset is rejected.",
   "title": "`format: date-time` becomes `AwareDatetime`"
  },
  {
   "action": "keep",
   "affects": {
    "python_api": [
     "generate_dynamic_models"
    ]
   },
   "id": "dynamic-models-unformatted",
   "keep": {
    "note": "Pass `formatters=[Formatter.BLACK, Formatter.ISORT]` in the config."
   },
   "kind": "python-api",
   "refs": [
    "#6750"
   ],
   "release": "0.3.0",
   "source": "release-note",
   "summary": "It skips Black and isort unless formatters are selected.",
   "title": "`generate_dynamic_models()` no longer formats the code it builds"
  },
  {
   "action": "warn",
   "affects": {
    "python_api": [
     "PythonVersion.has_type_alias"
    ]
   },
   "id": "deprecation:python-api.python-version-has-type-alias",
   "kind": "warning",
   "release": "0.3.0",
   "source": "registry",
   "summary": "has_type_alias is deprecated.",
   "title": "PythonVersion.has_type_alias now emits DeprecationWarning"
  },
  {
   "action": "none",
   "id": "class-docstrings",
   "kind": "output-text",
   "refs": [
    "#3002"
   ],
   "release": "0.3.0",
   "source": "release-note",
   "summary": "Long class docstrings are wrapped at the line length.",
   "title": "Class docstrings are wrapped"
  },
  {
   "action": "none",
   "affects": {
    "experimental": [
     "input-format.avro"
    ]
   },
   "id": "experimental:input-format.avro",
   "kind": "experimental",
   "release": "0.3.0",
   "source": "registry",
   "summary": "Avro input is experimental.",
   "title": "--input-file-type avro is experimental"
  },
  {
   "action": "none",
   "id": "option:--released-flag",
   "kind": "cli",
   "release": "0.3.0",
   "source": "surface",
   "summary": "New option `--released-flag`.",
   "title": "New option `--released-flag`"
  },
  {
   "action": "none",
   "id": "preset:20260201",
   "kind": "preset",
   "release": "0.3.0",
   "source": "registry",
   "summary": "They keep the options of the 20260101 presets and add:\n\n- Python 3.15 targets\n- Strict types (`--strict-types str`): Be strict.",
   "title": "New dated presets `standard-py3XX-20260201` and `practical-py3XX-20260201`"
  },
  {
   "action": "required",
   "id": "refuse-empty-enum",
   "kind": "error",
   "migrate": "Drop the empty `enum` keyword.",
   "refs": [
    "#4002"
   ],
   "release": "0.4.0",
   "source": "release-note",
   "summary": "A schema with `enum: []` fails with an error instead of generating an empty enum.",
   "title": "An empty `enum` is refused"
  },
  {
   "action": "required",
   "affects": {
    "options": [
     "--validation"
    ]
   },
   "id": "removal:cli.validation",
   "kind": "removal",
   "migrate": "Use --field-constraints.",
   "release": "0.4.0",
   "source": "registry",
   "summary": "--validation is deprecated.",
   "title": "`--validation` is removed"
  },
  {
   "action": "none",
   "id": "docstrings-unwrapped",
   "kind": "output-text",
   "refs": [
    "#4001"
   ],
   "release": "0.4.0",
   "reverts": "class-docstrings",
   "source": "release-note",
   "summary": "The wrapping of 0.3.0 is undone.",
   "title": "Class docstrings are no longer wrapped"
  },
  {
   "action": "required",
   "affects": {
    "templates": [
     "pydantic_v2/BaseModel.jinja2",
     "Old.jinja2"
    ]
   },
   "id": "custom-template-root",
   "keep": {
    "note": "No option keeps `model_fields`."
   },
   "kind": "template",
   "migrate": "Rename `model_fields` to `fields` in your templates.",
   "refs": [
    "#5001"
   ],
   "release": "unreleased",
   "source": "release-note",
   "summary": "Templates of `--custom-template-dir` read the fields as `fields`.",
   "title": "Custom templates receive `fields` instead of `model_fields`"
  },
  {
   "action": "required",
   "affects": {
    "options": [
     "--old-flag"
    ]
   },
   "id": "old-flag-removed",
   "kind": "removal",
   "migrate": "Drop `--old-flag`.",
   "refs": [
    "#5002"
   ],
   "release": "unreleased",
   "source": "release-note",
   "summary": "The option did nothing since 0.3.0.",
   "title": "`--old-flag` is removed"
  },
  {
   "action": "none",
   "id": "deprecation:dependency.argcomplete-optional",
   "kind": "warning",
   "release": "unreleased",
   "source": "registry",
   "summary": "argcomplete will become optional.",
   "title": "argcomplete installation is scheduled to change"
  },
  {
   "action": "none",
   "affects": {
    "experimental": [
     "input-format.toml"
    ]
   },
   "id": "experimental:input-format.toml",
   "kind": "experimental",
   "release": "unreleased",
   "source": "registry",
   "summary": "TOML input is experimental.",
   "title": "--input-file-type toml is experimental"
  },
  {
   "action": "none",
   "id": "option:--new-flag",
   "kind": "cli",
   "release": "unreleased",
   "source": "surface",
   "summary": "Turn on new things.",
   "title": "New option `--new-flag` (`--no-new-flag`)"
  },
  {
   "action": "none",
   "id": "option:--output-model-type=c",
   "kind": "cli",
   "release": "unreleased",
   "source": "surface",
   "summary": "New value `c` of `--output-model-type`.",
   "title": "New value `c` of `--output-model-type`"
  },
  {
   "action": "none",
   "id": "option:--quiet-flag",
   "kind": "cli",
   "release": "unreleased",
   "source": "surface",
   "summary": "New option `--quiet-flag`.",
   "title": "New option `--quiet-flag`"
  },
  {
   "action": "none",
   "id": "preset:20260301",
   "kind": "preset",
   "release": "unreleased",
   "source": "registry",
   "summary": "They keep the options of the 20260201 presets and add:\n\n- Snake case (`--snake-case-field`): Snake case field names.",
   "title": "New dated presets `standard-py3XX-20260301` and `practical-py3XX-20260301`"
  }
 ],
 "complete_from": "0.1.0",
 "latest": "0.4.0",
 "ranges": [
  {
   "changes": [
    "specialized-enum-default",
    "union-item-suffix-removed",
    "deprecation:cli.validation",
    "preset:20260101",
    "python-38-runtime-dropped",
    "annotated-constraints",
    "aware-datetime",
    "dynamic-models-unformatted",
    "deprecation:python-api.python-version-has-type-alias",
    "experimental:input-format.avro",
    "option:--released-flag",
    "preset:20260201",
    "refuse-empty-enum",
    "removal:cli.validation"
   ],
   "complete": true,
   "from": "0.1.0",
   "keep_conditional": {
    "--use-annotated": [
     "--field-constraints"
    ]
   },
   "keep_flags": [
    "--no-use-specialized-enum",
    "--output-datetime-class",
    "datetime"
   ],
   "keep_pyproject": {
    "output-datetime-class": "datetime",
    "use-specialized-enum": false
   },
   "page": "https://datamodel-code-generator.koxudaxi.dev/migration/from-0.1.0/",
   "sources": [
    "0.1.0"
   ],
   "through": "0.1.0"
  },
  {
   "changes": [
    "python-38-runtime-dropped",
    "annotated-constraints",
    "aware-datetime",
    "dynamic-models-unformatted",
    "deprecation:python-api.python-version-has-type-alias",
    "experimental:input-format.avro",
    "option:--released-flag",
    "preset:20260201",
    "refuse-empty-enum",
    "removal:cli.validation"
   ],
   "complete": true,
   "from": "0.2.0",
   "keep_conditional": {
    "--use-annotated": [
     "--field-constraints"
    ]
   },
   "keep_flags": [
    "--output-datetime-class",
    "datetime"
   ],
   "keep_pyproject": {
    "output-datetime-class": "datetime"
   },
   "page": "https://datamodel-code-generator.koxudaxi.dev/migration/from-0.2.0/",
   "sources": [
    "0.2.0"
   ],
   "through": "0.2.0"
  },
  {
   "changes": [
    "refuse-empty-enum",
    "removal:cli.validation",
    "docstrings-unwrapped"
   ],
   "complete": true,
   "from": "0.3.0",
   "keep_conditional": {},
   "keep_flags": [],
   "keep_pyproject": {},
   "page": "https://datamodel-code-generator.koxudaxi.dev/migration/from-0.3.0/",
   "sources": [
    "0.3.0"
   ],
   "through": "0.3.0"
  }
 ],
 "raw_page": "https://datamodel-code-generator.koxudaxi.dev/migration/from/{release}.md",
 "releases": [
  {
   "date": "2026-01-01",
   "version": "0.1.0"
  },
  {
   "date": "2026-02-01",
   "version": "0.2.0"
  },
  {
   "date": "2026-03-01",
   "version": "0.3.0"
  },
  {
   "date": "2026-04-01",
   "version": "0.4.0"
  }
 ],
 "schema_version": 1
}
