Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features/multi-content-type closes #20871 #20874

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

zpapp2
Copy link

@zpapp2 zpapp2 commented Mar 13, 2025

Some swagger files use multiple content types pro operation. It is allowed by REST-API and currently in use. But OpenAPI generator handles only the first one, others are ignored. This PR extends the current behaviour to be able handle all of the content types under a specific operation. If there is only one, the behaviour is unchanged.

If an operation have multiple content types a matching function call shall be generated pro content type, eg:
myFunction(<parameter list 0>)
myFunction_1(<parameter list 1>)

See further details on #20871

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.

1 participant