[Cadl RLC] Fix the extensible enum issue and support apiVersion default value suggested from cadl-dpg #1667
Closed
2 tasks done
Labels
Client
This issue points to a problem in the data-plane of the library.
DPG/RLC v2.0b2
Epic: Model Generation
https://github.com/Azure/cadl-azure/issues/1944
RLC
WS: Code Generation
In this pr we handle the cadl extensible enum as string literal, I think the more consistent way is handled as string. See our current type map test cases here.
previous implementation:
autorest.typescript/packages/cadl-rlc-test/test/anomalyDetector/cadl-output/src/anomalyDetector.ts
Lines 11 to 16 in 3548055
Current pr:
autorest.typescript/packages/cadl-typescript/test/unit/generate/clientFactory.spec.ts
Lines 188 to 197 in 93b44b6
draft pr is here: #1664
The text was updated successfully, but these errors were encountered: