Skip to content

Choose a tag to compare

@github-actions github-actions released this 06 Jul 07:01
430582a

Breaking Changes

Error Handling Changes

  • Ruff formatting failures now raise instead of being ignored - Ruff subprocess calls previously ran with check=False and used their stdout regardless of exit code, so a failed ruff run silently produced (possibly empty or partial) output. _run_ruff_command now raises RuntimeError when ruff exits non-zero (except the allowed check-with-remaining-diagnostics case), and _find_ruff_path raises a RuntimeError with an install hint when ruff is missing instead of falling back to "ruff". Workflows that relied on generation silently succeeding despite a ruff error will now fail with an exception. (#3561)

Code Generation Changes

  • --enable-command-header now redacts sensitive HTTP options - When --enable-command-header is combined with --http-headers or --http-query-parameters, the reproducibility command line embedded in generated files now writes <redacted> in place of those values instead of the literal arguments. Generated file headers change for these flag combinations, so committed output or snapshot tests will differ. (#3561)
  • RootModel config rendering for config objects - Pydantic v2 RootModel now synchronizes and renders model_config derived from config objects (e.g. regex_engine, frozen) that were previously dropped, and non-dict config objects are now applied in the base model. Generated output for affected pydantic v2 root models may now include a model_config = ConfigDict(...) that was not emitted before. (#3561)

Bug Fixes

  • generate() keeps str inputs as inline source text. Pass a Path to input_ for local file input; if a failed string input resolves to an existing path, generate() warns and recommends using Path. (#3573)

What's Changed

Full Changelog: 0.67.0...0.68.0