autorest.typescript
autorest.typescript copied to clipboard
Extension for AutoRest (https://github.com/Azure/autorest) that generates TypeScript code. The transpiled javascript code is isomorphic. It can be run in browser and in node.js environment.
Currently the generated sampleTest.ts only contains the replaceVariables and recorder creation. But after migration to test recorder v2 the created client would require default credential and testing options. So it's...
Type choice name is not matched between definition and reference if name is all uppercase After generation the definition of this type would be: ```typescript export type Sku = string;...
The generated samples sometimes include hard-coded subscription ids. This breaks azure-sdk-for-js smoke-tests. We should really read subscriptionId from environment variables to make sure we are targetting a valid resource during...
we will add a flag modelerfour.legacy-request-body in order to use the security scope from the code model. but we will still need to remove this flag and change the code...
In the Storage Blob Data Plane SDK - [file](https://github.com/Azure/azure-rest-api-specs/blob/storage-dataplane-preview/specification/storage/data-plane/Microsoft.BlobStorage/preview/2020-10-02/blob.json), we have the following swagger definition: ``` "EncryptionAlgorithm": { "name": "x-ms-encryption-algorithm", "x-ms-client-name": "encryptionAlgorithm", "type": "string", "in": "header", "required": false, "enum": [...
The output for the lint script in the generated package.json file is `echo skipped` as the generated code today is not linter error free. This issue is to ensure that...
AutoRest doesn't seem to support the following documented use-case (https://github.com/Azure/autorest/blob/main/docs/extensions/readme.md#x-nullable) > ### Example: An operation that returns an object or null. > > ``` > "responses": { > "200": {...
Currently in `hlcREADME.md.hbs` we hard coded the client example generation with fixed paramters, but it is not truly for all services. Sometimes the service constructor don't have the required `subscriptionId`,...
Some customers need access to it to suspend and resume iterating. See https://github.com/Azure/azure-sdk-for-js/issues/20380#issuecomment-1051410026
# Bug The autorest option `azureArm` extracting from method `getIsAzureArm` in `autorestOptions.ts` will return true if no azure-arm or openapi-type defined with below code snippet: ```typescript async function getIsAzureArm(host: AutorestExtensionHost):...