moved tags related paths into one file so operations prefixes is grouped by files#2449
moved tags related paths into one file so operations prefixes is grouped by files#2449dsgouda merged 1 commit intoAzure:masterfrom
Conversation
Automation for azure-sdk-for-pythonWas unable to create SDK azure-sdk-for-python PR for this closed PR. |
Automation for azure-sdk-for-goSwagger to SDK encountered a Subprocess error: (azure-sdk-for-go)
Command: ['/usr/local/bin/autorest', '/tmp/tmptvh593zn/rest/specification/apimanagement/resource-manager/readme.md', '--go', '--go-sdk-folder=/tmp/tmptvh593zn/sdk', '--multiapi', '--package-version=nightly', '--use=@microsoft.azure/autorest.go@preview', "--user-agent='Azure-SDK-For-Go/nightly services'", '--verbose'] AutoRest code generation utility [version: 2.0.4249; node: v7.10.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/tmp/.autorest/@microsoft.azure_autorest-core@2.0.4249/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4249)
Loading AutoRest extension '@microsoft.azure/autorest.go' (preview->2.1.71)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.38->2.3.38)
Processing batch task - {"tag":"package-2017-03"} .
FATAL: System.InvalidOperationException: method RegionsClient.ListByService contains a null nextLinkName so it shouldn't be treated as a pageable operation
at AutoRest.Go.Model.PageTypeGo..ctor(MethodGo method) in C:\Users\ci\AppData\Local\Temp\PUBLISHvae20\92_20180207T233911\autorest.go\src\Model\PageTypeGo.cs:line 41
at AutoRest.Go.Model.CodeModelGo.CreatePageableTypeForMethod(MethodGo method) in C:\Users\ci\AppData\Local\Temp\PUBLISHvae20\92_20180207T233911\autorest.go\src\Model\CodeModelGo.cs:line 298
at AutoRest.Go.TransformerGo.TransformMethods(CodeModelGo cmg) in C:\Users\ci\AppData\Local\Temp\PUBLISHvae20\92_20180207T233911\autorest.go\src\TransformerGo.cs:line 278
at AutoRest.Go.TransformerGo.TransformCodeModel(CodeModel cm) in C:\Users\ci\AppData\Local\Temp\PUBLISHvae20\92_20180207T233911\autorest.go\src\TransformerGo.cs:line 32
at AutoRest.Go.Program.<ProcessInternal>d__3.MoveNext() in C:\Users\ci\AppData\Local\Temp\PUBLISHvae20\92_20180207T233911\autorest.go\src\Program.cs:line 100
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NewPlugin.<Process>d__15.MoveNext()
FATAL: go/generate - FAILED
FATAL: Error: Plugin go reported failure.
Process() cancelled due to exception : Plugin go reported failure.
Failure during batch task - {"tag":"package-2017-03"} -- Error: Plugin go reported failure..
Error: Plugin go reported failure. |
|
@solankisamir , could you please review this too? |
|
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
|
@dsgouda, there are no errors but warnings only, Which one should we fix? PutRequestResponseScheme? It's not possible, since put method receives existing apiId and tagId to make an association between them, but GET method returns all other properties of the API and TAG. Anyway, the result of GET operation can be used as input for PUT, those properties will be just ignored. |
dsgouda
left a comment
There was a problem hiding this comment.
Looks good for the most part, the naming for certain operations is against recommendations.
| "tags": [ | ||
| "ProductTags" | ||
| ], | ||
| "operationId": "Tag_AssignToProduct", |
There was a problem hiding this comment.
PUT operations must usually be named as Tag_create or Tag_Update
There was a problem hiding this comment.
The PR was signed off by ARM #2257. We are just moving operation into different file, as it caused the Documentation CI to break
| "tags": [ | ||
| "ProductTags" | ||
| ], | ||
| "operationId": "Tag_DetachFromProduct", |
There was a problem hiding this comment.
DELETE operations must be named as Tag_Delete
There was a problem hiding this comment.
The PR was signed off by ARM #2257. We are just moving operation into different file, as it caused the Documentation CI to break
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-versionin the path should match theapi-versionin the spec).Quality of Swagger