Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mgnt] Type choice name is not matched between definition and reference if name is all uppercase #1404

Closed
MaryGao opened this issue May 30, 2022 · 0 comments · Fixed by #1645
Assignees

Comments

@MaryGao
Copy link
Member

MaryGao commented May 30, 2022

Type choice name is not matched between definition and reference if name is all uppercase
After generation the definition of this type would be:

export type Sku = string;

But in the reference the type would be like:

/** Device Update Sku */
  sku?: SKU;

So we have below hint in VS code:

Cannot find name 'SKU'. Did you mean 'Sku'?
Exported type alias 'Account' has or is using private name 'SKU'.

Refer SKU enum definition in this swagger: https://github.com/Azure/azure-rest-api-specs/blob/78665b44d4b9295e56664193fc3baa9e0526d15d/specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2022-04-01-preview/deviceupdate.json#L1335

image

@MaryGao MaryGao self-assigned this May 30, 2022
@MaryGao MaryGao changed the title [HLC] Type choice name is not matched between definition and reference if name is all uppercase [mgnt] Type choice name is not matched between definition and reference if name is all uppercase May 30, 2022
@qiaozha qiaozha mentioned this issue Nov 1, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant