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

Failed to genreate track2 of azure-mgmt-security #848

Closed
00Kai0 opened this issue Dec 11, 2020 · 2 comments
Closed

Failed to genreate track2 of azure-mgmt-security #848

00Kai0 opened this issue Dec 11, 2020 · 2 comments
Assignees

Comments

@00Kai0
Copy link

00Kai0 commented Dec 11, 2020

After this update in swagger, I can not generate python track2 code.
But track1 is ok. Is this a codegen issue?

Error log:

ERROR (): Duplicate Operation 'list' detected.

ERROR (): Duplicate Operation 'get' detected.

ERROR (): Duplicate Operation 'list' detected.

ERROR (): Duplicate Operation 'get' detected.

ERROR (): Duplicate Operation 'list' detected.

ERROR (): Duplicate Operation 'get' detected.

ERROR (): Duplicate Operation 'list' detected.

ERROR (): Duplicate Operation 'get' detected.
FATAL: Error: 8 errors occured -- cannot continue.
  Error: Plugin checker reported failure.
@jsntcy
Copy link
Member

jsntcy commented Dec 11, 2020

In https://github.com/amiramit/azure-rest-api-specs/blob/82cb2fc0290e66d4b27083e23cb8337343df6c54/specification/security/resource-manager/readme.md#tag-package-composite-v3
There are swagger with duplicated operations (for example, "operationId": "IotRecommendations_List",) in input-file:

input-file:

  • Microsoft.Security/stable/2019-08-01/iotRecommendations.json
  • Microsoft.Security/preview/2020-08-06-preview/iotRecommendations.json

@iscai-msft
Copy link
Contributor

hey @00Kai0 , like @jsntcy said, this is due to duplicated operations, which is a swagger issue, not an autorest.python issue. In the future, whenever you see errors like this that have ERROR ():, that means it's autorest core throwing due to a swagger issue. Only if you see Python errors thrown, is it an autorest.python issue. Closing this bc it's a swagger issue

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

No branches or pull requests

3 participants