cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
403 stars 134 forks source link

Issue with reserved keyword delete #287

Closed alexis-landrieu-avanade closed 1 year ago

alexis-landrieu-avanade commented 1 year ago

Hello,

I have an issue with latest version of ng-openapi-gen 0.50.2, if operationId is a reserved typescript keyword we have following issue.

import { delete } from '../fn/bucket/delete';

Error: src/app/modules/api/test/fn/bucket/delete.ts:24:17 - error TS1359: Identifier expected. 'delete' is a reserved word that cannot be used here.

openapi definition

"/api/v1/bucket":{
   "delete":{
      "summary":"Delete Bucket.",
      "operationId":"Delete",
      "parameters":[      ],
      "responses":{      }
   }
}
zerock54 commented 1 year ago

same issue here