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

Swagger API review gen failure to get operations #5810

Closed
praveenkuttappan opened this issue Mar 24, 2023 · 1 comment
Closed

Swagger API review gen failure to get operations #5810

praveenkuttappan opened this issue Mar 24, 2023 · 1 comment
Assignees
Labels
APIView Central-EngSys This issue is owned by the Engineering System team.

Comments

@praveenkuttappan
Copy link
Member

Found following swagger API parser run failure for Microsoft.Synapse.

The generated code file is /mnt/vss/_work/1/generated/Microsoft.Synapse/Microsoft.Synapse.New.json
Changing directory and executing the function...
swaggerAPIParser input file specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/azureADOnlyAuthentication.json,specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/checkNameAvailability.json,specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/firewallRule.json,specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/keys.json,specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/operations.json,specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privateEndpointConnections.json,specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privateLinkResources.json,specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privatelinkhub.json,specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlPool.json,specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlServer.json,specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json,specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/bigDataPool.json,specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/library.json,specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/integrationRuntime.json,specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sparkConfiguration.json,specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json, branch: main
Get resource provider resourceProvider: Microsoft.Synapse, from path specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/azureADOnlyAuthentication.json
commonTypesFiles: /mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/data-plane/v1/types.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v1/privatelinks.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v1/types.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v2/privatelinks.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v2/types.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v3/managedidentity.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v3/privatelinks.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v3/types.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v4/customermanagedkeys.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v4/managedidentity.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v4/managedidentitywithdelegation.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v4/privatelinks.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v4/types.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v5/managedidentity.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v5/types.json,/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/rfcs/rfc7517.json
exec command: echo $HOME&&$HOME/.dotnet/tools/swaggerAPIParser --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/azureADOnlyAuthentication.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/checkNameAvailability.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/firewallRule.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/keys.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/operations.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privateEndpointConnections.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privateLinkResources.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/privatelinkhub.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlPool.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlServer.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/bigDataPool.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/library.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/integrationRuntime.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sparkConfiguration.json" --swaggers "specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/data-plane/v1/types.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v1/privatelinks.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v1/types.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v2/privatelinks.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v2/types.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v3/managedidentity.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v3/privatelinks.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v3/types.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v4/customermanagedkeys.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v4/managedidentity.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v4/managedidentitywithdelegation.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v4/privatelinks.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v4/types.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v5/managedidentity.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/resource-management/v5/types.json" --swaggers "/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/common-types/rfcs/rfc7517.json" --output /mnt/vss/_work/1/generated/Microsoft.Synapse/Microsoft.Synapse.Baseline.json --package-name Microsoft.Synapse
Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at SwaggerApiParser.ApiPath.get_operations() in /mnt/vss/_work/1/s/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/SwaggerSpec/ApiPath.cs:line 35
   at SwaggerApiParser.SwaggerApiViewGenerator.GenerateSwaggerApiView(SwaggerSpec swaggerSpec, String swaggerFilePath, SchemaCache schemaCache, String packageName, String swaggerLink) in /mnt/vss/_work/1/s/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/SwaggerAPIViewGenerator.cs:line 48
   at SwaggerApiParser.Program.HandleGenerateCodeFile(IEnumerable`1 swaggers, String output, String packageName, List`1 swaggerLinks, String readmeFile, String readmeTag) in /mnt/vss/_work/1/s/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/Program.cs:line 109
   at SwaggerApiParser.Program.<>c.<<Main>b__0_3>d.MoveNext() in /mnt/vss/_work/1/s/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/Program.cs:line 57
--- End of stack trace from previous location ---
@chidozieononiwu
Copy link
Member

Resolved by #5914

@github-project-automation github-project-automation bot moved this from 🤔 Triage to 🎊 Closed in Azure SDK EngSys 🚢🎉 Apr 17, 2023
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in ApiView Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIView Central-EngSys This issue is owned by the Engineering System team.
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants