Skip to content

0.93.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 07:50
· 416 commits to main since this release
d300d81

Breaking Changes

Error Handling Changes

  • The deprecated --validation option is now rejected when used with --no-allow-remote-refs - Passing --validation together with --no-allow-remote-refs (or validation=True with allow_remote_refs=False in the Python API) when parsing OpenAPI input used to run the prance validator, which fetched remote $ref URLs even though remote refs were turned off. The parser now raises an Error instead: "--validation is refused under --no-allow-remote-refs: its validator resolves the $ref of the document by itself and fetches the URLs that --no-allow-remote-refs blocks." The command exits with an error and no code is generated. This works the same way as the existing refusal of --validation under --untrusted-input. If you use both options, drop --validation (it is deprecated) or stop passing --no-allow-remote-refs. (#6688)

Python Version Changes

  • Dropped support for running on Python 3.10 - The package now declares requires-python = ">=3.11". The Python 3.10 classifier is gone, and so is the tomli dependency that was only installed below Python 3.11. datamodel-code-generator can no longer be installed or run on Python 3.10, and pip and uv will keep Python 3.10 environments on the 0.92.x release. This completes the deprecation announced in 0.84.0: the dependency.python-310-runtime FutureWarning is no longer emitted, and its registry entry, shown by --list-deprecations, now records removal in 0.93.0. Only the interpreter running the generator is affected. The default target is still Python 3.10, and code generated for Python 3.10, with or without --target-python-version 3.10, is unchanged. Projects still on Python 3.10 can keep generating code by running the tool on a newer Python, for example uvx datamodel-code-generator --target-python-version 3.10 ... (#6701)

What's Changed

Full Changelog: 0.92.0...0.93.0