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
Starting from openapi-generator v4.3.1 and using the typescript-fetch, the following error occurs when compiling the generated typescript code:
> tsc
src/apis/DefaultApi.ts:18:5 - error TS2305: Module '"../models"' has no exported member 'AnyType'.
18 AnyType,
~~~~~~~
src/apis/DefaultApi.ts:19:5 - error TS2305: Module '"../models"' has no exported member 'AnyTypeFromJSON'.
19 AnyTypeFromJSON,
~~~~~~~~~~~~~~~
src/apis/DefaultApi.ts:20:5 - error TS2305: Module '"../models"' has no exported member 'AnyTypeToJSON'.
20 AnyTypeToJSON,
~~~~~~~~~~~~~
Found 3 errors.
openapi-generator version
Using openapi-generator v4.3.1 and typescript-fetch.
This is a regression as I was not able to reproduce it on v4.3.0
Bug Report Checklist
Description
Starting from openapi-generator v4.3.1 and using the typescript-fetch, the following error occurs when compiling the generated typescript code:
openapi-generator version
Using openapi-generator v4.3.1 and typescript-fetch.
This is a regression as I was not able to reproduce it on v4.3.0
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
openapi.yml
andconfig.yml
pasted above.cd dist
npm install
to install typescript and runtsc
(becausetsc
is called in the post-install script in thepackage.json
file)Related issues/PRs
Seems to be linked to this PR : #6091
Suggest a fix
The previous version set the type of empty object as
object
.It may be linked to @mwilby proposal on the PR:
The text was updated successfully, but these errors were encountered: