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

[Bug]: swagger 2 specs 'produces' keyword not interpreted by openapi generator #1780

Open
mrednic-1A opened this issue May 14, 2024 · 0 comments
Labels
bug Something isn't working triage

Comments

@mrednic-1A
Copy link
Contributor

Package name

schematics

Package version

9.6

Reproduction steps

generate an sdk starting from a spec file in swagger 2, having 'produces' keyword for the operations or globally, with a value different from 'application/json'.

Current result

the generation of the operation method inside the api class will have inside the metadata.headerAccept defaulting to 'application/json' instead of the value set in 'produces' in the specs.

Expected result

the default value should be the one set in 'produces'.
To be checked if we still want to support swagger 2 specs with the generator. If not, then the solution proposed will be the migration of the specs to open api v3. Double check if with v3 the headerAccept if well generated.

Additional comments

No response

@mrednic-1A mrednic-1A added bug Something isn't working triage labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant