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

V2: Implement the @Produce comment #1550

Closed
Nerzal opened this issue Apr 13, 2023 · 0 comments
Closed

V2: Implement the @Produce comment #1550

Nerzal opened this issue Apr 13, 2023 · 0 comments
Assignees
Labels
enhancement v2 Used for all v2 related issues

Comments

@Nerzal
Copy link
Contributor

Nerzal commented Apr 13, 2023

Is your feature request related to a problem? Please describe.
In V2 the @Produce comment is currently being ignored.

Describe the solution you'd like
Parse the @Produce comment and append the listed types to the specification

Describe alternatives you've considered
None.

Additional context
As OpenAPI 3.1.0 supports more fields etc. than swagger 2.0 we should deprecate the @Produce comment in the future and replace the behavior with something else. But for the sake of being non breaking backwards compatible we should implement it now.

@Nerzal Nerzal added enhancement v2 Used for all v2 related issues labels Apr 13, 2023
@Nerzal Nerzal self-assigned this Apr 13, 2023
@Nerzal Nerzal closed this as completed Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement v2 Used for all v2 related issues
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant