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
Ran into this same issue. Trying to generate a TS client that works between React Native & Web and having no luck. Axios is the closest but this is blocking. I could PR this, but should the accessToken type change based on if it's BasicBearer or should the call site change to include those values?
Bug Report Checklist
The code generated for accessToken is :
(As per https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache)
configuration.accessToken()
is called without parametersType definition for accessToken is
name
is a mandatory parameterTypescript outputs the following error
semantic error TS2554 Expected 1-2 arguments, but got 0.
Type definition for accessToken should probably be:
or, if the parameters are never used:
Description
openapi-generator version
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: