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 using useSingleRequestParameter the parameters are destructured in services methods like this:
const{
param1,
param2,
...
}=requestParameters;
As parameters name are not something we can be certain of, it's not safe to use them like that.
In our case we have a parameter named from which later breaks the use of from(...) initialy imported from rxjs.
openapi-generator version
7.10.0
Generation Details
typescript-nestjs generator with useSingleRequestParameter=true
Steps to reproduce
Generate with an input file where a request parameter is named from
Suggest a fix
Stop destructuring requestParameters and access its properties when needed instead.
The text was updated successfully, but these errors were encountered:
Description
When using
useSingleRequestParameter
the parameters are destructured in services methods like this:As parameters name are not something we can be certain of, it's not safe to use them like that.
In our case we have a parameter named
from
which later breaks the use offrom(...)
initialy imported fromrxjs
.openapi-generator version
7.10.0
Generation Details
typescript-nestjs generator with
useSingleRequestParameter=true
Steps to reproduce
Generate with an input file where a request parameter is named
from
Suggest a fix
Stop destructuring
requestParameters
and access its properties when needed instead.The text was updated successfully, but these errors were encountered: