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

[bug] naming breaking when migrate swagger to typespec #2979

Open
msyyc opened this issue Dec 23, 2024 · 1 comment
Open

[bug] naming breaking when migrate swagger to typespec #2979

msyyc opened this issue Dec 23, 2024 · 1 comment
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved.

Comments

@msyyc
Copy link
Member

msyyc commented Dec 23, 2024

When signature name begins with $ like https://github.com/Azure/azure-rest-api-specs/blob/d1d028736d79183a6a420e29145887fb02d1b1a9/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/virtualMachineExtensionImage.json#L120-L124
Image
Then the generated signature name in SDK is:
Image

However, when migrate it to typespec
Image
https://github.com/Azure/azure-rest-api-specs/blob/d1d028736d79183a6a420e29145887fb02d1b1a9/specification/compute/Compute.Management/VirtualMachineExtensionImage.tsp#L79-L80

the signature name is changed to _filter which has breakings compared with before:
Image

@msyyc msyyc added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 23, 2024
@msyyc msyyc self-assigned this Dec 23, 2024
@msyyc
Copy link
Member Author

msyyc commented Dec 23, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved.
Projects
None yet
Development

No branches or pull requests

1 participant