cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

As a reportProgress asset in json or yaml ?. an example please #103

Closed jairosolarte closed 4 years ago

jairosolarte commented 4 years ago

As a reportProgress asset in json or yaml ?. an example please reportProgress ??? /api/files: post: description: requestBody: content: multipart/form-data: schema: type: object properties: file: type: string format: binary

luisfpg commented 4 years ago

I think I din't understand your question fully, but it is not possible to use reportProgress with the generated methods. That is because the report progress makes the emitted value on the observable to be events instead of the expected type, and, thus, is not supported. For example: `service.method(): Observable<Result>'. When reportProgress is used, the Observable would have an event emmitted, not the result.