Skip to content

Conversation

@EricAtORS
Copy link
Contributor

I've had some issues with the code generation.
This should fix:

Copy link
Collaborator

@dbanty dbanty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely, thanks!

@dbanty dbanty enabled auto-merge December 3, 2025 20:39
@dbanty dbanty added this pull request to the merge queue Dec 3, 2025
Merged via the queue into openapi-generators:main with commit f5f3b41 Dec 3, 2025
22 checks passed
@knope-bot knope-bot bot mentioned this pull request Dec 3, 2025
github-merge-queue bot pushed a commit that referenced this pull request Dec 3, 2025
> [!IMPORTANT]
> Merging this pull request will create this release

## Breaking Changes

- URL-encode path parameters in generated endpoints (#1349)

## Fixes

### Fix bad code generation

#1360 by @EricAtORS

This fixes:
- missing parenthesis in to_multipart
 #1338 #1318
- missing imports in the lazy eval in to_multipart:
#931 and #1051

### Fix optional bodies

If a body is not required (the default), it will now:

1. Have `Unset` as part of its type annotation.
2. Default to a value of `UNSET`
3. Not be included in the request if it is `UNSET`

Thanks @orelmaliach for the report! Fixes #1354

Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants