Closed Roman991 closed 1 year ago
The point is that some operations can have optional parameters, while others, required parameters. We have several operation with both optional and required parameters and we don't see errors in the IDE. Can you post the operation definition (yaml or json)?
https://github.com/cyclosproject/ng-openapi-gen/blob/master/templates/apiService.handlebars
46 invoke<P, R>(fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>, params?: P, context?: HttpContext): Observable<R></R> {
Can you check dat</R>
at line 46.After removing it, the ide still complains about
In my case I set every
params
toparams: P
(not optional) and it worked.