-
Notifications
You must be signed in to change notification settings - Fork 76
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
track1 code generator is generating weird method name for arm-policyinsights #1261
Comments
@qiaozha The title and description mentions policyInsights RP. But, the command references the file I am going to try both the SDKs and update this issue. |
First, I have tried the postgresql SDK using the following command:
The generation was successful. Build was successful. There is no reference to any names such as I am going to try the policyInsights and update the issue. |
Used the following command to generate
I was able to generate and build the SDK. But, I see the |
I have checked the generated SDK and the swagger provided. Here, this issue started happening from commit id: Let me give an example. Take a look at this file. The operation id is
As you can see, the operation name is overridden and set to Now, why was this done? I think service team would be the best to answer that question. How do we solve this? Instead, please do a swagger transform that overrides the Please let me know if this solves your problem or if you need any more details. Thanks |
If a swagger transform can help here, I would recommend that route given that this issue is for the older generator. Can we check whether the new generator will have the same problem? |
@ramya-rao-a The error does not happen with the latest generator (However this SDK needs leniant model dupliction flag, which is not unrelated) |
@sarangan12 Thanks for such detailed investigation here, let me check with service team about this and get back to you. I think we can hold on the fix for it here until we get more information from service team. |
@qiaozha is there any update from the service team? |
@qiaozha As there are no pending action items, I am closing this task. If you find anything new from the Service Team and would like to update the generator, feel free to reopen this task. |
Yes, it's okay to close it, We decide to release track2 SDK directly for this RP which works as expected. Thanks |
We are trying to generate the mgmt plane track1 sdk for policyinsights RP. The command we are using is
autorest --typescript --typescript-sdks-folder=../azure-sdk-for-js --license-header=MICROSOFT_MIT_NO_VERSION ../azure-rest-api-specs/specification/postgresql/resource-manager/readme.md [email protected]/[email protected]
And we get some weird method names like nextLink1, nextLink2, nextLink3 etc in

sdk/policyinsights/arm-policyinsights/src/operations/policyStates.ts
we also tried to use @microsoft.azure/[email protected] and @microsoft.azure/[email protected] still not working
--version:2.0.4417 also doesn't work.
The text was updated successfully, but these errors were encountered: