cap-js / cds-typer

CDS type generator for JavaScript
Apache License 2.0
25 stars 8 forks source link

[BUG] @singular for sap.common.CodeList not considered during type generation #240

Closed softproviding-chiuaruc closed 1 month ago

softproviding-chiuaruc commented 1 month ago

Is there an existing issue for this?

Nature of Your Project

TypeScript

Current Behavior

Within schema.cds there is the following CodeList defined: Schema After generating the types with cds.typer in the resulting index.ts file the following definition (erroneous) is created: error typer This leads to errors when building the CAP application.

Expected Behavior

The generated code should have _LabelingOrderStatusAspect insted and not _LabelingOrderStatuAspect

Steps To Reproduce

No response

Environment

- **OS**: Windows 11
- **Node**: 18.15.0
- **npm**: 9.5.0
- **cds-typer**: 0.20.2
- **cds**: 7.9.0

Repository Containing a Minimal Reproducible Example

No response

Anything else?

No response

daogrady commented 1 month ago

Duplicate of https://github.com/cap-js/cds-typer/issues/229