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
The delete operations are broken. POST, PATCH and PUT supports a body as the second parameter of the call, with the options being at the third position. DELETE, however, requires the body to be put into the second option parameter.
Ran into the same issues. Out of the blue I couldn't generate code for DELETE endpoints anymore. Updating to the latest @openapitools/openapi-generator-cli also did not help.
Solved it by setting the 'ngVersion' additional-property to '12.0.0' (although the project is on v14) in the command:
Description
The delete operations are broken. POST, PATCH and PUT supports a body as the second parameter of the call, with the options being at the third position. DELETE, however, requires the body to be put into the second option parameter.
See also:
https://angular.io/api/common/http/HttpClient
openapi-generator version
5.3.1
Generated typescript code
Expected typescript code
The text was updated successfully, but these errors were encountered: