You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: