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
Following api-definition leads to a typscript compiler error
/document/upload:
post:
tags:
- documentsummary: 'uploads a pdf as a document'consumes:
- multipart/form-dataparameters:
- in: formDataname: filetype: filedescription: 'The file to upload.'responses:
200:
description: 'Successful operation'
this generates in the angular service following code (snippet):
ERROR in src/app/core/services/backend-api/generated/api/document.service.ts(447,26): error TS1345: An expression of type 'void' cannot be tested for truthiness
openapi-generator version
3.3.4
OpenAPI declaration file content or url
/document/upload:
post:
tags:
- documentsummary: 'uploads a pdf as a document'consumes:
- multipart/form-dataparameters:
- in: formDataname: filetype: filedescription: 'The file to upload.'responses:
200:
description: 'Successful operation'405:
description: 'Invalid input'
Command line used for generation
maven-plugin
Suggest a fix
if (file !== undefined) {
formParams = formParams.append('file', <any>file) as any || formParams;
}
The text was updated successfully, but these errors were encountered:
Description
Following api-definition leads to a typscript compiler error
this generates in the angular service following code (snippet):
which leads to following typscript error:
ERROR in src/app/core/services/backend-api/generated/api/document.service.ts(447,26): error TS1345: An expression of type 'void' cannot be tested for truthiness
openapi-generator version
3.3.4
OpenAPI declaration file content or url
Command line used for generation
maven-plugin
Suggest a fix
The text was updated successfully, but these errors were encountered: