Closed sfowl closed 1 month ago
I believe this bug was introduced by https://github.com/openapi-generators/openapi-python-client/issues/926
Can you provide a minimal OpenAPI schema which triggers this issue? That way we can make sure we're exercising that code path in tests to prevent this regression.
I've modified the baseline spec in the end to end tests to cover this case, and regenerated the snapshots with pdm regen
.
The
_transform
macro is called at three different places in this file, but one location was not similarly indented as the other two. This caused errors in the ruff post_hook like:The generated code without the indent fix looks like: