You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it is today a valid use case, we don't have a way to limit enums types. But either way I would agree that we probably would want a linting rule against that for azure.
iscai-msft
changed the title
[Bug]: TCGC returns wrong value type in mixed-type fixed enum
[Bug]: add linter in azure-core to prevent mixed type enums
Jun 24, 2024
tadelesh
changed the title
[Bug]: add linter in azure-core to prevent mixed type enums
[Bug]: support mix types for enum types in tcgc
Aug 27, 2024
Describe the bug
I have this enum:
which is totally fine in typespec, but TCGC gives me
string
as its valueType, which is just incorrect.Suggestion
I think it is reasonable that we return a union as its value type which is more intuitive.
Checklist
The text was updated successfully, but these errors were encountered: