Skip to content

Unset used but not imported for required multi-body endpoints - #1478

Open
rolandgeider wants to merge 1 commit into
openapi-generators:mainfrom
rolandgeider:fix/unset-required-endpoints
Open

Unset used but not imported for required multi-body endpoints#1478
rolandgeider wants to merge 1 commit into
openapi-generators:mainfrom
rolandgeider:fix/unset-required-endpoints

Conversation

@rolandgeider

Copy link
Copy Markdown

Closes #1451

We ran into this while generating a client from our spec. The multi-body branch of the arguments macro read body_required before it was ever assigned, so | Unset = UNSET was appended to the body annotation even for a required request body.

@rolandgeider
rolandgeider force-pushed the fix/unset-required-endpoints branch from a00efe8 to 95e15ff Compare August 11, 2026 16:06
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.

Multi-body endpoints with required requestBody emit | Unset without importing Unset

1 participant