scottdurow / dataverse-gen

Early-bound types generator for CDS/Dataverse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate entries Status reason

BenediktBergmann opened this issue · comments

When the status reason has duplicate entries the transpile will fail since there are duplicate entires with the same name in the generated enum.

An example:
One of our customers has the status reason "Price" and "Quality" both for Active and Inactive status. The generated enums will get "Price" and "quality" twice. This will lead to errors while transpiling the TS to JS. Something like a pre or suffixed "active"/"inactive" might be helpful in that case.