Azure / autorest.typescript

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.
MIT License
177 stars 73 forks source link

Are the TypeSpec Versioning Decorators Supported? #2630

Open alfie80 opened 1 week ago

alfie80 commented 1 week ago

Hello team,

I would like to check if the TypeSpec versioning decorators are currently supported. If not, do you have a plan when to support it in future?

Thanks, Eric

lirenhe commented 4 days ago

We support generating the JS SDK from the latest API version. Please let us know if this could meet your need. cc @qiaozha

alfie80 commented 4 days ago

We support generating the JS SDK from the latest API version. Please let us know if this could meet your need. cc @qiaozha

Thank you @lirenhe for your reply. So I assume specifying specific version to generate the SDK is not supported, right?

qiaozha commented 4 days ago

It is supported. you can specify api-version in the emitter's configuration of tspconfig.yaml similar like this image

alfie80 commented 4 days ago

It is supported. you can specify api-version in the emitter's configuration of tspconfig.yaml similar like this image

That's great! Thank you @qiaozha . I will take a try with that.

qiaozha commented 2 days ago

verify on RLC projected versioning.

qiaozha commented 1 day ago

Already confirmed supported in both RLC and Modular.