Skip to content

Upgrading to 0.96.0

Pick the release you use now. Its page lists, for that release only, the options that keep your current output in 0.96.0, the changes you must make and the changes no option keeps. Coding agents can read the same steps as Markdown: https://datamodel-code-generator.koxudaxi.dev/migration/from/<release>.md, for example https://datamodel-code-generator.koxudaxi.dev/migration/from/0.20.0.md.

Every change is listed for upgrades from 0.95.0 and later. The lists of older releases, marked incomplete, lack changes not written down yet: also read the breaking changes of the releases after yours through 0.95.0 in the changelog.

Your release Required Kept by an option Not kept New warnings Page
0.95.0 4 0 1 0 from-0.95.0
0.93.0 through 0.94.0 (incomplete list) 4 0 1 2 from-0.93.0
0.84.0 through 0.92.0 (incomplete list) 5 0 1 2 from-0.84.0
0.78.0 through 0.83.0 (incomplete list) 5 0 1 3 from-0.78.0
0.65.0 through 0.77.0 (incomplete list) 5 0 1 7 from-0.65.0
0.56.0 through 0.64.1 (incomplete list) 5 0 1 8 from-0.56.0
0.53.0 through 0.55.0 (incomplete list) 5 0 1 9 from-0.53.0
0.52.1 through 0.52.2 (incomplete list) 5 0 1 11 from-0.52.1
0.52.0 (incomplete list) 5 0 1 13 from-0.52.0
0.48.0 through 0.51.0 (incomplete list) 5 0 1 14 from-0.48.0
0.31.0 through 0.47.0 (incomplete list) 5 0 1 16 from-0.31.0
0.24.0 through 0.30.2 (incomplete list) 5 0 1 17 from-0.24.0
0.20.0 through 0.23.0 (incomplete list) 5 0 1 18 from-0.20.0

Releases before 0.20.0: start from the 0.20.0 page and read the older entries of the changelog.

How to upgrade without surprises

  1. Add the options of your page; they keep the output where the new release can.
  2. Regenerate and compare: datamodel-codegen ... --check fails on any difference.
  3. Make the required changes and review the changes no option keeps.
  4. Later, drop one keep option at a time, or move to the newest dated preset.

All changes by release lists every entry with its details, newest first.