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.
The getClientOpenAIClient function in classic/client/openAIClient/index.ts should have a return type annotation: 
According to https://github.com/Azure/autorest.typescript/issues/2218, for additional properties in legacy client, we generate model with additionalProperties bag to accept additional properties in the modular layer, it will pending on the serialize and...
Language emitters should work to move entirely to TCGC's new ecosystem. The entry point for the ecosystem is accessing .sdkPackage on the SdkContext returned from tcgc
In one of my SDK Generations using Typespec, I found the following issue in the `rest/clientDefinitions.ts` file: ```js // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import...
With the previous Swagger based SDK, we were able to select multiple items in the swagger and override them. This override could be naming overrides, type overrides, required/optional overrides, etc....
fixes https://github.com/Azure/autorest.typescript/issues/2793 fixes https://github.com/Azure/autorest.typescript/issues/2792 ### Breakings CollectionFormat with csv and multi are most commonly used cases, for `csv` there is no breaking. And for `multi` there will be a breaking...
For typespec-test , when the `tspconfig.yaml` contains `isModularLibrary: true`, the generated code has an additional '|' in the end. https://github.com/Azure/autorest.typescript/pull/2871#discussion_r1816180138 
https://github.com/Azure/autorest.typescript/pull/2871#discussion_r1816179552 
 $ npx tsp compile ./client.tsp TypeSpec compiler v0.61.2 Failed to format file: D:\backup\autorest.typescript\packages\typespec-test\test\ai\generated\typespec-ts\src\api\agents\index.ts Emitter "@azure-tools/typespec-ts" crashed! This is a bug. Please file an issue at https://github.com/Azure/autorest.typescript/issues SyntaxError: ':' expected....