openapi-typescript-code-generator icon indicating copy to clipboard operation
openapi-typescript-code-generator copied to clipboard

Bug: TS 1214 occured

Open Himenon opened this issue 4 years ago • 0 comments

Steps To Reproduce

components:
  schemas:
    package: // reserved word
      type: object
      properties:
        id:
          type: number

The current behavior

TS Error

A software package

Identifier expected. 'package' is a reserved word in strict mode. Modules are automatically in strict mode.ts(1214)

The expected behavior

Himenon avatar Apr 09 '21 02:04 Himenon