Azure / autorest.python

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

[Typespec-python] @api_version_validation populating on overloads #2632

Closed l0lawrence closed 3 weeks ago

l0lawrence commented 3 weeks ago

On the release operation in azure eventgrid the emitter populates the @api_version_validation tag on each overload as well as the implementation method.

Gen code: https://github.com/Azure/azure-sdk-for-python/blob/a79c5ab17aa6848d7f9eb1f4885dea4150946470/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_operations/_operations.py#L795

Tsp: https://github.com/Azure/azure-rest-api-specs/blob/e37bdcd79a8d8fadf19c06dbc71155137a89830b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp#L313

Do we need to have this on each overload?