undefined credentials
is generated for an OpenAPI file which has no authentication required
#2005
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-author-feedback
Workflow: More information is needed from author to address the issue.
no-recent-activity
There has been no recent activity on this issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
autorest version
$ autorest --version AutoRest code generation utility [cli version: 3.6.3; node: v18.17.1] (C) 2018 Microsoft Corporation. https://aka.ms/autorest Showing All Installed Extensions Type Extension Name Version Location core @autorest/core 3.9.7 /Users/fai/.autorest/@autorest_core@3.9.7 extension @autorest/modelerfour 4.26.2 /Users/fai/.autorest/@autorest_modelerfour@4.26.2 extension @autorest/typescript 6.0.8 /Users/fai/.autorest/@autorest_typescript@6.0.8
generate code
openapi file: pets.json which has no authentication required.
success
output
generated/src/petClient.ts
The undefined
credentials
appears unexpectedly (line 69)init client
To avoid some execution errors, just make up a meaningless Pipeline.
see also:
autorest.typescript/packages/autorest.typescript/src/generators/clientFileGenerator.ts
Lines 717 to 725 in 8f5b8a9
The text was updated successfully, but these errors were encountered: