-
Notifications
You must be signed in to change notification settings - Fork 10
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
duplicated mapping key - support for different content types on the same path & method #28
Comments
That should be easy to fix. But I do not have the time to do it myself right now. |
@Robbilie Could you provide some sample code. Since it is a difference, whether you have "different methods for the same path but different content-types" (as stated in your description) or one method for two different content-types (as also stated in your description). |
"absolutely correct" in what sense? Certainly not in the sense of "valid open API yaml" :)
|
OK, I take back my sentence stating that the generated yaml is correct. But the to be able to help you, could you provide some sample code of your controller. |
|
any update on this ? |
currently when writing a controller with different methods for the same path but different content-types the resulting openapi.yml is invalid since it will generate two entries of the same method instead of reusing the same method and just adding the second content type.
example:
expected result:
actual result:
The text was updated successfully, but these errors were encountered: