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
When I generate typescript-fetch code from OpenAPI spec, using withInterfaces=true switch, the generated interfaces include two methods for each API operation, e.g. getArticles and getArticlesRaw.
The raw method is not part of the API, it's an implementation detail; the interface should be 1:1 with the OpenAPI spec.
Description
When I generate typescript-fetch code from OpenAPI spec, using
withInterfaces=true
switch, the generated interfaces include two methods for each API operation, e.g.getArticles
andgetArticlesRaw
.The
raw
method is not part of the API, it's an implementation detail; the interface should be 1:1 with the OpenAPI spec.openapi-generator version
"@openapitools/openapi-generator-cli": "^2.3.7"
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Generate code from provided spec using provided script.
Check
generated/apis/ArticleApi.ts
Suggest a fix
The method is written here -- either remove this completely, or make it
?
optional.The text was updated successfully, but these errors were encountered: