FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Unset used but not imported for required multi-body endpoints by rolandgeider · Pull Request #1478 · openapi-generators/openapi-python-client · GitHub

Repository navigation

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

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

Conversation

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL