Azure / autorest.python

Extension for AutoRest (https://github.com/Azure/autorest) that generates Python code
MIT License
76 stars 54 forks source link

Questions about versioning #2664

Open alfie80 opened 3 days ago

alfie80 commented 3 days ago

Hello team,

I would like to check if all the [TypeSpec versioning decorators]https://typespec.io/docs/libraries/versioning/reference/decorators#@TypeSpec.Versioning.added), e.g. "@added", "@removed", "@renamedFrom", etc. are currently supported. And when generating rlc, are all versions of the api definition to be generated in same package? Or only selected (or only the latest version) is supported? I notice some old version generated rlc support "api_version" when initializing client, but the latest version doesn't support this option for client?

Thanks for your help! Regards, Eric

alfie80 commented 2 days ago

Just to add, I tested with the latest version (0.24.3) which seems support all the decorators and also support generating from specific version of typespec by specifying the "api-version" in tspconfig.yaml. But when I test an older version (0.17.0 - which our program is using), it seems the decorators are not supported.